I said, "Messenger of Allah, what do you think about acts of devotion I used to perform during the days of ignorance, such as giving charity, freeing slaves, and maintaining family ties. Is there any reward for me in them?"The Prophet ﷺ replied, "You have embraced Islam along with all the good you did before."
حدثنا عبد الله بن محمد حدثنا هشام حدثنا معمر عن الزهري عن عروة
قلت يا رسول الله أرأيت أشياء كنت أتحنث بها في الجاهلية من صدقة أو عتاقة وصلة رحم فهل فيها من أجر فقال النبي ﷺ أسلمت على ما سلف من خير