It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Beware! Let no man ever spend the night with a (non-mahram) woman in her house, unless he is her husband or a mahram relative of hers."
Hadith Referenceمسند أبي يعلى الموصلي / مسند جابر / 1848
Hadith Takhrij«قال سعيد بن محمد السناري: صحيح» «أخرجه صحيح مسلم برقم: 2171، وأخرجه صحيح ابن حبان برقم: 5587، مسند ابویعلیٰ ترقیم الاثری: 1843»