It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) asked a man: "Where are you staying?" He said: At such-and-such a woman's place. He (peace and blessings be upon him) said: "Did she lock her door on you?" He said: Yes. So the Messenger of Allah (peace and blessings be upon him) disliked that.
Hadith Referenceالمعجم الأوسط / باب الميم / 8377
Hadith Gradingمحدثین:رجال البزار رجال الصحيح
Hadith Takhrij«قال الهيثمي: رجال البزار رجال الصحيح «مجمع الزوائد ومنبع الفوائد، ج 4، ص 326»» «أخرجه الدارقطني فى «سننه» برقم: 2440، والطبراني فى «الكبير» برقم: 11638»