Hadith 1071

وَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ‏:‏ ”إِنَّمَا جُعِلَ الإِذْنُ مِنْ أَجْلِ الْبَصَرِ‏.‏“
The Prophet (ﷺ) further said: "The purpose of asking permission is so that one may not look (inside)."
Hadith Reference الادب المفرد / كتاب الاستئذان / 1071
Hadith Grading الألبانی: صحيح
Hadith Takhrij «صحيح : انظر قبله»