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.
Sunan Abi Dawud Book 43, Hadith 400