The Prophet (may Allah's peace and blessings be upon him) points out that if a disbeliever embraces Islam, he gets rewarded for the good deeds he used to perform in Jāhiliyyah, before becoming Muslim, like charity, manumission of slaves, and upholding of kinship ties.