Read the Arabic text and available English translation from Sahih al-Bukhari, with its supplied source reference.
Sahih al-Bukhari 5992
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أَسْلَمْتَ عَلَى مَا سَلَفَ مِنْ خَيْرٍ "
Narrated 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.
Full reference and source
Sahih al-Bukhari 5992
In-book : Book 78, Hadith 23
USC-MSA web (English) : Vol. 8, Book 73, Hadith 21 (deprecated)
References, translations and numbering differ between editions. A URL number is an internal app record identifier, not universal hadith numbering. Only supplied grading is displayed; no new authenticity assessment is made.