عَنْ ثَوْبَانَ رَضِيَ اللَّهُ عَنْهُ عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ أَنَّهُ قَالَ ((لَا يَحِلُّ لِامْرِئٍ مِنَ الْمُسْلِمِينَ أَنْ يَنْظُرَ فِي جَوْفِ بَيْتِ امْرِئٍ حَتَّى يَسْتَأْذِنَ فَإِنْ نَظَرَ فَقَدْ دَخَلَ وَلَا يَؤُمُّ قَوْمًا فَيَخْتَصَّ نَفْسَهُ بِدُعَاءٍ دُونَهُمْ فَإِنْ فَعَلَ فَقَدْ خَانَهُمْ وَلَا يُصَلِّي وَهُوَ حَقِنٌ حَتَّى يَتَخَفَّفَ))
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.
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.