Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
nasai-kubra:803ʿUbaydullāh b. Saʿīd > Yaḥyá > ʿUbaydullāh > Nāfiʿ > Ibn ʿUmar

It was narrated from Ibn 'Umar, that when he was young and single, with no family, at the time of the Messenger of Allah ﷺ, he used to sleep in the Masjid of the Prophet ﷺ. (Using translation from Nasāʾī 722)  

الكبرى للنسائي:٨٠٣أَخْبَرَنَا عُبَيْدُ اللهِ بْنُ سَعِيدٍ قَالَ حَدَّثَنَا يَحْيَى عَنْ عُبَيْدِ اللهِ قَالَ أَخْبَرَنِي نَافِعٌ عَنِ ابْنِ عُمَرَ

أَنَّهُ «كَانَ يَنَامُ وَهُوَ شَابٌّ عَزَبٌ لَا أَهْلَ لَهُ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ فِي مَسْجِدِ النَّبِيِّ ﷺ»  


See similar narrations below:

Collected by Bukhārī, Nasāʾī
bukhari:440Musaddad > Yaḥyá > ʿUbaydullāh > Nāfiʿ > ʿAbdullāh

ʿAbdullah bin ʿUmar said: I used to sleep in the mosque of the Prophet ﷺ while I was young and unmarried.  

البخاري:٤٤٠حَدَّثَنَا مُسَدَّدٌ قَالَ حَدَّثَنَا يَحْيَى عَنْ عُبَيْدِ اللَّهِ قَالَ حَدَّثَنِي نَافِعٌ قَالَ أَخْبَرَنِي عَبْدُ اللَّهِ

أَنَّهُ كَانَ يَنَامُ وَهْوَ شَابٌّ أَعْزَبُ لاَ أَهْلَ لَهُ فِي مَسْجِدِ النَّبِيِّ ﷺ  

nasai:722ʿUbaydullāh b. Saʿīd > Yaḥyá > ʿUbaydullāh > Nāfiʿ > Ibn ʿUmar

It was narrated from Ibn 'Umar, that when he was young and single, with no family, at the time of the Messenger of Allah ﷺ, he used to sleep in the Masjid of the Prophet ﷺ.  

النسائي:٧٢٢أَخْبَرَنَا عُبَيْدُ اللَّهِ بْنُ سَعِيدٍ قَالَ حَدَّثَنَا يَحْيَى عَنْ عُبَيْدِ اللَّهِ قَالَ أَخْبَرَنِي نَافِعٌ عَنِ ابْنِ عُمَرَ

أَنَّهُ كَانَ يَنَامُ وَهُوَ شَابٌّ عَزْبٌ لاَ أَهْلَ لَهُ عَلَى عَهْدِ رَسُولِ اللَّهِ ﷺ فِي مَسْجِدِ النَّبِيِّ ﷺ