Abu Dharr reported,

The Messenger of Allah ﷺ said, "Whoever lifts a curtain and lets his gaze enter a house before being granted permission, and sees the private parts of its inhabitants, has committed a transgression that is not lawful for him to commit. If, the moment he let his gaze in, a man had come forward and gouged out his eyes, I would not hold it against him. But if a man passes by a door that has no curtain and is not closed, and he looks in, there is no sin upon him. The sin is only upon the people of the house."

Azami 6902

Hasan

عن أبي ذر قال

قال رسول الله ﷺ: من كشف سترا فأدخل بصره في البيت قبل أن يؤذن له، فرأى عورة أهله، فقد أتى حدا لا يحل له أن يأتيه، لو أنه حين أدخل بصره استقبله رجل ففقأ عينيه ما عيرت عليه. وإن مر الرجل على باب لا ستر له غير مغلق فنظر، فلا خطيئة عليه، إنما الخطيئة على أهل البيت.

الأعظمي 6902حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Retaliation and crimes
Chapter
Blood money
Section
Whoever peeps into a people's house and they gouge out his eye, there is no blood money for him
Numbering
Jami al-Kamil 6902 (2nd edition)
Azami 6902