Sahih Muslim – Hadith No : 338

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.

Hadith In Arabic Text :

حدثني حرملة بن يحيى، أخبرنا ابن وهب، قال أخبرني يونس، عن ابن شهاب، قال أخبرني عروة بن الزبير، أن حكيم بن حزام، أخبره أنه، قال لرسول الله صلى الله عليه وسلم أرأيت أمورا كنت أتحنث بها في الجاهلية هل لي فيها من شىء فقال له رسول الله صلى الله عليه وسلم ‏”‏ أسلمت على ما أسلفت من خير ‏”‏ ‏.‏ والتحنث التعبد ‏.‏

Chapter : The Book of Faith – كتاب الإيمان