Sahih Muslim
2158.01

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

2158.02

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