Urwah bin al-Zubayr (may Allah have mercy on him) narrates from Sayyiduna Hakim bin Hizam (may Allah be pleased with him) that he said: I said: "O Messenger of Allah (peace and blessings be upon him), what do you think of the things I used to do as acts of devotion in the Jahiliyyah, such as freeing slaves and maintaining ties of kinship: will I have any reward for them?" He (peace and blessings be upon him) said: "You have embraced Islam along with the good you did before."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المدبر / 21596