صحيح البخاري Sahih Bukhari كتاب الاستئذان The Book of Asking Permission
بَابُ الاِسْتِئْذَانُ مِنْ أَجْلِ الْبَصَرِ:

(11) Chapter. Asking permission because of looking.

2 hadith
Hadith 6241
حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ ، حَدَّثَنَا سُفْيَانُ ، قَالَ الزُّهْرِيُّ : حَفِظْتُهُ كَمَا أَنَّكَ هَا هُنَا ، عَنْ سَهْلِ بْنِ سَعْدٍ ، قَالَ : اطَّلَعَ رَجُلٌ مِنْ جُحْرٍ فِي حُجَرِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، وَمَعَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مِدْرًى يَحُكُّ بِهِ رَأْسَهُ ، فَقَالَ : " لَوْ أَعْلَمُ أَنَّكَ تَنْظُرُ ، لَطَعَنْتُ بِهِ فِي عَيْنِكَ ، إِنَّمَا جُعِلَ الِاسْتِئْذَانُ مِنْ أَجْلِ الْبَصَرِ " .
Narrated Sahl bin Sa`d: A man peeped through a round hole into the dwelling place of the Prophet, while the Prophet had a Midray (an iron comb) with which he was scratching his head. the Prophet said, " Had known you were looking (through the hole), I would have pierced your eye with it (i.e., the comb)." Verily! The order of taking permission to enter has been enjoined because of that sight, (that one should not look unlawfully at the state of others). (See Hadith No. 807, Vol. 7)
Hadith Reference Sahih Bukhari / The Book of Asking Permission / Hadith: 6241
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 6242
حَدَّثَنَا مُسَدَّدٌ ، حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ ، عَنْ عُبَيْدِ اللَّهِ بْنِ أَبِي بَكْرٍ ، عَنْ أَنَسِ بْنِ مَالِكٍ : " أَنَّ رَجُلًا اطَّلَعَ مِنْ بَعْضِ حُجَرِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، فَقَامَ إِلَيْهِ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِمِشْقَصٍ أَوْ بِمَشَاقِصَ ، فَكَأَنِّي أَنْظُرُ إِلَيْهِ يَخْتِلُ الرَّجُلَ لِيَطْعُنَهُ " .
Narrated Anas bin Malik: A man peeped into a room of the Prophet. The Prophet stood up, holding an arrow head. It is as if I am just looking at him, trying to stab the man.
Hadith Reference Sahih Bukhari / The Book of Asking Permission / Hadith: 6242
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة