Sahl b. Sa'd as-Sa'id reported that a person peeped through the hole of the door of Allah's Messenger (ﷺ), and at that time Allah's Messenger (ﷺ) had with him a scratching instrument with which he had been scratching his head. When Allah's Messenger (ﷺ) saw him. he said
If I were to know that you had been peeping through the door, I would have thrust that into your eyes, and Allah's Messenger (ﷺ) said: Permission is needed as a protection against glance.
Sahl b. Sa'd as-Sa'idi reported that a person peeped through the hole of the door of Allah's Messenger (ﷺ) and he had with him some pointed thing with which he had been adjusting (the hair of his head). Allah's Messenger (ﷺ) said to him
If I were to know that you had been peeping. I would have thrust it in your eyes. Allah has prescribed seeking permission because of protection against glance.
This hadith has been transmitted on the authority of Sahl b. Sa'd as-Sa'idi with a slight variation of wording.
Anas b. Malik reported that a person peeped in some of the holes (in the doors) of Allah's Messenger (ﷺ) (and he found him) standing up (lifting) an arrow or some arrows. The narrator said
I perceived as if Allah's Messenger (ﷺ) was going to pierce (his eyes).
Abu Huraira reported having heard Allah's Messenger (ﷺ) say
He who peeped into the house of people without their consent, it is permissible for them to put out his eyes.
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.