Behold, no person should spend the night with a married woman, but only in case he is…

Sahih Muslim Book 39 Hadith 27

Sahih Muslim #2171

The Book of Greetings 39:27

Jabir reported Allah's Messenger (ﷺ) as saying:

Behold, no person should spend the night with a married woman, but only in case he is married to her or he is her Mahram.

Chapter: The Prohibition Of Being Alone With A Non-Mahram Woman Or Entering Upon Her

Grade: Sahih