Hakīm ibn Hizām (may Allah be pleased with him) reported: I said: "O Messenger of Allah, before embracing Islam, I used to do good deeds, like giving in charity, manumitting slaves, and upholding kinship ties. Shall I be rewarded for those deeds?" The Prophet (may Allah’s peace and blessings be upon him) replied: "You have embraced Islam along with your past good deeds." Authentic hadith - Narrated by Bukhari & Muslim