Sahl bin Saad reported,

He informed him that a man peeked 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 jabbed it into your eyes."The Messenger of Allah ﷺ said, "Permission to enter was prescribed only because of sight."

Azami 6899

Sahih

عن سهل بن سعد

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

الأعظمي 6899صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Retaliation and crimes
Chapter
Blood money
Section
Whoever peeps into a people's house and they gouge out his eye, there is no blood money for him
Numbering
Jami al-Kamil 6899 (2nd edition)
Azami 6899