Hakeem bin Hizam reported,

He informed him that he said to the Messenger of Allah ﷺ, "Tell me about acts of devotion I used to perform during the days of ignorance. Is there any reward for me in them?"The Messenger of Allah ﷺ replied to him, "You have embraced Islam along with the good deeds you previously performed."Tahannuth means devotional worship.

Muslim 323

Sahih

حدثني حرملة بن يحيى أخبرنا ابن وهب قال أخبرني يونس عن ابن شهاب قال أخبرني عروة بن الزبير أن

حكيم بن حزام

أخبره أنه قال لرسول الله ﷺ أرأيت أمورا كنت أتحنث بها في الجاهلية هل لي فيها من شيء فقال له رسول الله ﷺ أسلمت على ما أسلفت من خير والتحنث التعبد

مسلم 323صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Faith
Chapter
Ruling on the deeds of a disbeliever if he accepts Islam afterward
Numbering
Darussalam 323
Muslim 323