Read the Arabic text and available English translation from Sahih al-Bukhari, with its supplied source reference.
Sahih al-Bukhari 1436
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:
I said to Allah's Messenger (ﷺ), "Before embracing Islam I used to do good deeds like giving in charity, slave-manumitting, and the keeping of good relations with Kith and kin. Shall I be rewarded for those deeds?" The Prophet (ﷺ) replied, "You became Muslim with all those good deeds (Without losing their reward)."
Full reference and source
Sahih al-Bukhari 1436
In-book : Book 24, Hadith 39
USC-MSA web (English) : Vol. 2, Book 24, Hadith 517 (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.