Read the Arabic text and available English translation from Riyad as-Salihin, with its supplied source reference.
Sunnah.com : Book 18, Hadith 248
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لو يعلم المار بين المصلي ماذا عليه لكان أن يقف أربعين خيرًا له من أن يمر بين يديه"
Abu l-Juhaim 'Abdullah bin Al-Harith (May Allah be pleased with him) said:
The Messenger of Allah (ﷺ) said, "If the person who passes in front of a praying person, realizes the enormity of the sinfulness of this act, it will have been better for him to wait forty than to pass in front of him."
[Al-Bukhari and Muslim].
[The narrator was not sure whether the Prophet (ﷺ) said forty days, months or years.]
Full reference and source
Sunnah.com : Book 18, Hadith 248
Arabic/English book : Book 18, Hadith 1758
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.