Sahl bin Saad reported,

A man peered through a hole in the door of the Messenger of Allah ﷺ, while the Messenger of Allah ﷺ had a comb with which he was scratching his head. When the Messenger of Allah ﷺ saw him, he said, "Had I known you were watching me, I would have poked it into your eye."The Messenger of Allah ﷺ then said, "Permission to enter was prescribed only because of sight."

Muslim 5638

Sahih

حدثنا يحيى بن يحيى ومحمد بن رمح قالا أخبرنا الليث واللفظ ليحيى ح و حدثنا قتيبة بن سعيد حدثنا ليث عن ابن شهاب أن

سهل بن سعد الساعدي أخبره

أن رجلا اطلع في جحر في باب رسول الله ﷺ ومع رسول الله ﷺ مدرى يحك به رأسه فلما رآه رسول الله ﷺ قال لو أعلم أنك تنتظرني لطعنت به في عينك وقال رسول الله ﷺ إنما جعل الإذن من أجل البصر

مسلم 5638صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Etiquette
Chapter
Prohibition of looking into another's house
Numbering
Darussalam 5638
Muslim 5638