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. (Using translation from Abū Dāʾūd 5172)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ مَنْ اطَّلَعَ فِي دَارِ قَوْمٍ بِغَيْرِ إِذْنِهِمْ فَفُقِئَتْ عَيْنُهُ هُدِرَتْ