Hakeem bin Hizam reported,

He informed him that he had said, "Messenger of Allah, what do you think about acts of devotion I used to perform in the days of ignorance, such as maintaining family ties, freeing slaves, and giving charity? Will I be rewarded for them?"Hakeem رضي الله عنه said, the Messenger of Allah ﷺ replied, "You have embraced Islam along with all the good you did before."

Bukhari 2220

Sahih

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

حكيم بن حزام

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

البخاري 2220صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Sales
Chapter
Purchasing a slave from a hostile combatant, gifting him, and freeing him
Numbering
Darussalam 2220
Bukhari 2220