The Messenger of Allah ﷺ said, "Let no man spend the night at the home of a previously married woman unless he is her husband or a close male relative whom she cannot marry."
قال رسول الله ﷺ: ألا لا يبيتن رجل عند امرأة ثيب، إلا أن يكون ناكحا، أو ذو محرم.
Muslim narrated it in the Book of Greetings (2171) via Hushaym, from Abu Zubayr, from Jabir bin Abdullah, and he mentioned it.As for what is narrated from Jabir, from the Prophet ﷺ, that he said, "Do not enter upon women whose husbands are absent, for Satan runs through each of you like blood." We said, "Even you?" He said, "Even me, but Allah helped me against him, so he submitted." This is daif.Tirmidhi narrated it (1172) from Nasr bin Ali, who said, Isa bin Yunus told us, from Mujalid, from Shaybi, from Jabir, and he mentioned it. Tirmidhi said, "This is a rare hadith from this route, and some have criticized Mujalid bin Saeed regarding his memory."I heard Ali bin Khashram say, Sufyan bin Uyayna said, in explaining the Prophet's saying ﷺ, "But Allah helped me against him, so he submitted," meaning "I became safe from him."Sufyan said, "Satan does not submit."As for his saying, "Do not enter upon women whose husbands are absent," al-mughibah is a woman whose husband is absent, and al-mughibat is the plural of al-mughibah. This is the end of Tirmidhi's words.But this meaning mentioned by Sufyan is contradicted by the hadith of Abdullah bin Masud, which follows.