Hadith 1330

نَا مُحَمَّدُ بْنُ بَشَّارٍ ، نَا يَحْيَى ، نَا عُبَيْدُ اللَّهِ ، أَخْبَرَنِي نَافِعٌ ، عَنِ ابْنِ عُمَرَ ، قَالَ : " كُنْتُ أَبِيتُ فِي الْمَسْجِدِ عَلَى عَهْدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَأَنَا أَعْزَبُ "
Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) narrates that I used to sleep in the Prophet’s Mosque during the night in the blessed era of the Messenger of Allah (peace and blessings be upon him), even though I was unmarried.
Hadith Reference صحيح ابن خزيمه / جماع أبواب الأفعال المباحة فى المسجد غير الصلاة وذكر الله / 1330
Hadith Takhrij صحيح بخاري