حَدَّثَنَا إِسْحَاقُ بْنُ مَنْصُورٍ، حَدَّثَنَا عَبْدُ اللَّهِ بْنُ نُمَيْرٍ، أَنْبَأَنَا عُبَيْدُ اللَّهِ بْنُ عُمَرَ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، قَالَ كُنَّا نَنَامُ فِي الْمَسْجِدِ عَلَى عَهْدِ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ .
It was narrated that Ibn 'Umar said:
"We used to sleep in the mosque at the time of the Messenger of Allah."
Reference: Sunan Ibn Majah 751
In-book : Book 4, Hadith 17
English translation : Vol. 1, Book 4, Hadith 751