كتاب الآداب
38  
The Book of Manners and Etiquette
(9)
Chapter: The Prohibition Of Looking Into A House
(9)
باب تَحْرِيمِ النَّظَرِ فِي بَيْتِ غَيْرِهِ ‏‏
Sahih Muslim 2158 b

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

If a person were to cast a glance in your (house) without permission, and you had in your hand a staff and you would have thrust that in his eyes, there is no harm for you.
حَدَّثَنَا ابْنُ أَبِي عُمَرَ، حَدَّثَنَا سُفْيَانُ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ لَوْ أَنَّ رَجُلاً اطَّلَعَ عَلَيْكَ بِغَيْرِ إِذْنٍ فَخَذَفْتَهُ بِحَصَاةٍ فَفَقَأْتَ عَيْنَهُ مَا كَانَ عَلَيْكَ مِنْ جُنَاحٍ ‏"‏ ‏.‏
Reference : Sahih Muslim 2158b
In-book reference : Book 38, Hadith 58
USC-MSA web (English) reference : Book 25, Hadith 5371
  (deprecated numbering scheme)