The Book of Manners and Etiquette
Ṣaḥīḥ Muslim 5643
لَوْ أَنَّ رَجُلاً اطَّلَعَ عَلَيْكَ بِغَيْرِ إِذْنٍ فَخَذَفْتَهُ بِحَصَاةٍ فَفَقَأْتَ عَيْنَهُ مَا كَانَ عَلَيْكَ مِنْ جُنَاحٍ
law anna rajulan āṭṭalaʿa ʿalayka bighayri idhnin fakhadhaftah biḥaṣātin fafaqaʾta ʿaynah mā kāna ʿalayka min junāḥin
Transliteration generated from the Arabic vowel marks
The full narration
Abu Huraira reported Allah's Messenger (ﷺ) as saying:If a person were to cast a glance in your (house) without permission, and you had in your hand a staff and you would have thrust that in his eyes, there is no harm for you
Source
Ṣaḥīḥ Muslim · 5643
Ṣaḥīḥ