(8) باب تَحْرِيمِ الْخَلْوَةِ بِالأَجْنَبِيَّةِ وَالدُّخُولِ عَلَيْهَا
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.
Reference: Sahih Muslim 2171
In-book reference: Book 39, Hadith 27
USC-MSA web (English) reference(deprecated numbering scheme): Book 26, Hadith 5399
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.