Sahih Muslim · Hadith 5802
The Book on Salutations and Greetings - كتاب السلام
وحدثنا محمد بن الصباح، وزهير بن حرب، قالا حدثنا هشيم، أخبرنا أبو الزبير، عن جابر، قال قال رسول الله صلى الله عليه وسلم " ألا لا يبيتن رجل عند امرأة ثيب إلا أن يكون ناكحا أو ذا محرم " .
Jabir reported Allah's Messenger (may peace be upon him) 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.
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).