Sahih Muslim | Book 1 | Chapter 56

Narrated by Hakim b. Hizam
Hakim b. Hizam reported to 'Urwa b. Zubair that he said to the Messenger of Allah: Do you think that there is any thing for me (of he reward with the Lord) for the deed of religious purification that I did in the state of ignorance? Upon this he (the Apostle of Allah) said to him: You accepted Islam with all the previous virtues that you practised.

Narrated by Hakim b. Hizam
Hakim b. Hizam reported to 'Urwa b. Zubair that he said to the Messenger of Allah (may peace be upon him): Messenger of Allah, do you think if there is any reward (of the Lord with me on the Day of Resurrection) for the deeds of religious purification that I performed in the state of ignorance, such as charity, freeing a slave, cementing of blood- relations? Upon this he (the Apostle of Allah) said to him: You have accepted Islam with all the previous virtues that you had practised.

Narrated by Hakim b. Hizam
It is narrate on the authority of Hakim b. Hizam: I said: Messenger of Allah, I did so some of the deeds in the state of ignorance. (One of the transmitters Hisham b. Urwa explained them as acts of piety. Upon this the Messenger, of Allah remarked: You have embraced Islam with all the previous acts of virtue. I said: By God, I would leave nothing undone in Islam the like of which I did in the state of ignorance.

Narrated by Hisham b. Urwa
Hisham b. Urwa narrated it on the authority of his father: Hakim b. Hizam freed one hundred slave and donated one hundred camels (for the sake of Allah) during the state of ignorance. Then he freed one hundred slaves and donated one hundred camel(for the sake of Allah) after) he had embraced Islam. He subsequently came to the Apostle (may peace be upon him). The rest of the hadith is the same as narrated above.