It is narrated from Sayyiduna Abu Huraira (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "If someone peeks into your house without permission and you throw a pebble at him and put out his eye, there is no sin upon you."
Hadith Referenceالسنن المأثورة / باب ما يحل من هتك حرمة مسلم / 608
Hadith Takhrijصحیح بخاری، الديات، باب من اطلع فى ........ الخ، رقم: 6902، صحيح مسلم، الآداب، باب تحريم النظر في بيت غيره، رقم: 2158۔