Narrator:Sahl ibn Sa‘d
وعن سهل بن سعد قال: قال رسول الله صلى الله عليه وسلم :
"إنما جعل الاستئذان من أجل البصر"
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].
Reported by Al-Bukhari (No. 5924, 6241, 6901), Muslim (No. 2156a, 2156b, 2156c), At-Tirmidhi (No. 2709), An-Nasa’i (No. 4859), Ahmad (No. 21737) and Ad-Darimi (No. 2278). Cited in Riyad as-Salihin (No. 871).