It is narrated from Hazrat Abu Dharr (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: If a person passes by a door where there is a curtain but the door is not closed, and his gaze falls inside, then there will be no sin upon him; rather, the sin will be upon the people of the house.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 21359
Hadith Gradingحکم دارالسلام:إسناده ضعيف، ابن لهيعة سيئ الحفظ، وقد تفرد بهذا الحديث