2. Ṣalāh (Prayer)

٢۔ كِتَابُ الصَّلَاةِ

2.268 [Machine] Sleeping in the Mosque

٢۔٢٦٨ النَّوْمُ فِي الْمَسْجِدِ

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)  

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

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