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.
حدثني حرملة بن يحيى أخبرنا ابن وهب قال أخبرني يونس عن ابن شهاب قال أخبرني عروة بن الزبير أن
أخبره أنه قال لرسول الله ﷺ أرأيت أمورا كنت أتحنث بها في الجاهلية هل لي فيها من شيء فقال له رسول الله ﷺ أسلمت على ما أسلفت من خير والتحنث التعبد