"We used to sleep in the mosque at the time of the Messenger of Allah." Sunan Ibn Majah Book 4, Hadith 17