Read the Arabic text and available English translation from Riyad as-Salihin, with its supplied source reference.
Sunnah.com : Book 6, Hadith 27
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إنما جعل الاستئذان من أجل البصر"
Sahl bin Sa'd (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "Seeking permission to enter (somebody's house) has been prescribed in order to restrain the eyes (from looking at something we are not supposed to look at)."
[Al-Bukhari and Muslim].
Full reference and source
Sunnah.com : Book 6, Hadith 27
Arabic/English book : Book 6, Hadith 871
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.