Bulugh al-Maram
Book 8, Hadith 183
Arabic hadith text
وَعَنْ جَابِرٍ - رضى الله عنه - قَالَ: قَالَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -{ لَا يَبِيتَنَّ رَجُلٌ عِنْدَ اِمْرَأَةٍ, إِلَّا أَنْ يَكُونَ نَاكِحًا, أَوْ ذَا مَحْرَمٍ. } أَخْرَجَهُ مُسْلِمٌ 1 .1 - صحيح. رواه مسلم (2171).
Translation
Jabir (may Allah be pleased with him) reported that the Messenger of Allah (peace and blessings be upon him) said: ‘A man must not spend the night with a woman unless he is her husband or a mahram.’ Muslim reported it.
Note: Sahih. Muslim (2171) reported it.