Sahih Muslim
The Book on Salutations and Greetings (Kitab As-Salam)
Book Number: 026 / Hadith Number: 5399
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.