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 ﷺ.
أَنَّهُ كَانَ يَنَامُ وَهُوَ شَابٌّ عَزْبٌ لاَ أَهْلَ لَهُ عَلَى عَهْدِ رَسُولِ اللَّهِ ﷺ فِي مَسْجِدِ النَّبِيِّ ﷺ