It is narrated from Sayyiduna Thawban (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: It is not lawful for any Muslim to look inside someone’s house without permission; if he does so, it would mean that he has entered. Also, no person should lead people in prayer in such a way that he supplicates only for himself; if he does so, it would mean that he has betrayed them. And no person should pray while restraining urine or feces; he should first relieve himself.
Hadith Referenceالفتح الربانی / كتاب آفات اللسان / 9974
Hadith Gradingمحدثین:صحیح
Hadith Takhrij«صحيح لغيره دون قصة دعاء الامام لنفسه، فانه تفرد بھا يزيد بن شريح الحضرمي، وھو يعتبر به في المتابعات والشواھد، أخرجه ابوداود: 90، والترمذي: 357، (انظر مسند أحمد ترقيم الرسالة: 22415 ترقیم بيت الأفكار الدولية: 22779»
Brief Explanation
Benefits: … It is precisely because of the gaze that entering someone’s house without permission has been prohibited; therefore, peeking into others’ houses and looking through holes is forbidden.