It is narrated from Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) was sitting in his house when he saw a man who had peeped at him. So the Prophet (peace and blessings be upon him) pointed the tip of an arrow towards him which was in his hand, as if, had the man not retreated, the Prophet would not have cared if the tip had pierced his eye.
Hadith Referenceمسند الإمام الشافعي / كتاب العتق / 1673
Hadith Takhrijاخرجه البخاري، الديات، باب من اخذ حقه أو اقتص دون السلطان (6889) ومسلم، الآداب، باب تحريم النظر في بيت غيره (2157)۔