Read the Arabic text and available English translation from Sahih al-Bukhari, with its supplied source reference.
Sahih al-Bukhari 2220
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أَسْلَمْتَ عَلَى مَا سَلَفَ لَكَ مِنْ خَيْرٍ "
Narrated `Urwa bin Az-Zubair:
Hakim bin Hizam said, "O Allah's Messenger (ﷺ)! I used to do good deeds in the Pre-Islamic period of Ignorance, e.g., keeping good relations with my Kith and kin, manumitting slaves and giving alms. Shall I receive a reward for all that?" Allah's Messenger (ﷺ) replied, "You embraced Islam with all the good deeds which you did in the past."
Full reference and source
Sahih al-Bukhari 2220
In-book : Book 34, Hadith 167
USC-MSA web (English) : Vol. 3, Book 34, Hadith 423 (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.