Sahih al-Bukhari 5992
صحيح البخاري#5992SahihNarrated Hakim bin Hizam:That he said, "O Allah's Messenger (ﷺ)! What do you think about my good deeds which I used to do during the period of ignorance (before embracing Islam) like keeping good relations with my Kith and kin, manumitting of slaves and giving alms etc; Shall I receive the reward for that?" Allah's Messenger (ﷺ) said, "You have embraced Islam with all those good deeds which you did
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Every narration in Sahih al-Bukhari is accepted as Sahih (authentic) by the established status of the book.
In-book reference: 78:23