The Messenger of Allah ﷺ said, "If a man passes by an open doorway that has no curtain and happens to look inside, no sin is upon him. The sin lies upon the people of the house."
حدثنا الحسن بن موسى حدثنا ابن لهيعة عن عبيد الله بن أبي جعفر أن أبا عبد الرحمن أخبره
عن رسول الله ﷺ أنه قال إن مر رجل على باب لا ستر له غير مغلق فنظر فلا خطيئة عليه إنما الخطيئة على أهل البيت