Sunan Abi Dawud, Book 43, Hadith 400 (Abu Dawud 5174)

Narrated AbuHurayrah:

The Prophet (ﷺ) said: If anyone peeps into the house of a people without their permission and he knocks out his eye, no responsibility is incurred for his eye.