Sleeping in Mosques: Evidence from Hadith and Companions’ Practice

اردو میں پڑھیں
Font size:
This excerpt is taken from the book Ahkam al-Masajid by Shaykh Muhammad Munir Qamar.

Sleeping in the Mosque and Some Other Matters

In these hadiths, eating food is mentioned only incidentally, whereas another issue is mentioned as the main point: the permissibility of sleeping in the mosque when there is a need.
➊ The hadith about the Companions of the Suffah (may Allah be pleased with them) and the second hadith after it clearly show this permissibility as well, because their residence was in the mosque itself. And
➋ in the second hadith it is mentioned that Sa’d ibn Ubadah (may Allah be pleased with him) and the woman who cleaned the mosque
➌ the righteous woman (may Allah be pleased with her) had tents in the mosque.
➍ And the (seven) men of Ukl and Uraynah also came and stayed in the Suffah itself. And in addition to these,
➎ the fifth hadith is the one narrated through several chains in Sahih al-Bukhari, Abu Dawud, al-Tirmidhi, al-Nasa’i, Sharh al-Sunnah of al-Baghawi, Sunan al-Kubra of al-Bayhaqi, Ibn Hibban and Musnad Ahmad concerning Abdullah ibn Umar (may Allah be pleased with them both), in which Nafi’, Salim and Hamzah say that Abdullah (may Allah be pleased with him) told them:

إنه كان ينام وهو شاب أعزب لا أهل له فى مسجد النبى صلى الله عليه وسلم

Reference: Bukhari 535/1 – Sahih Abi Dawud 368 – Sahih al-Tirmidhi 264 – Sahih al-Nasa’i 697 – Ibn Majah 751 – Sharh al-Sunnah 292/2, 379 – Ibn Khuzaymah 286/2 – Musnad Ahmad 70/2, 71 – Bayhaqi 492/2 – as cited in al-Ihsan 537/4, 838 – al-Muntaqa with Nayl 228/2/1 – Riyadh edition

He used to sleep in the mosque of the Prophet ﷺ, the Masjid al-Nabawi, because he did not yet have a wife and children but was unmarried.
And the words in Musnad Ahmad are:

كنا فى زمن رسول الله صلى الله عليه وسلم ننام فى المسجد ونقيل فيه ونحن شاب

Reference: Musnad Ahmad 70/2, 71 – as cited in al-Muntaqa and the verification of al-Ihsan

In the blessed era of the Prophet ﷺ, we used to sleep in the mosque at midday and at night, and we were young.
➏ And the sixth hadith is in Sahih al-Bukhari, al-Tabarani and other books, in which Sahl ibn Sa’d (may Allah be pleased with him) relates that the Prophet ﷺ once went to the house of Fatimah al-Zahra (may Allah be pleased with her), the Messenger’s beloved daughter, and saw that her husband Ali (may Allah be pleased with him) was not in the house. He asked where he was. She told him that some heated words had passed between her and him, and that he had become angry and left the house. And today at midday he had not even taken a qaylulah (a brief midday nap) at home.
The Prophet ﷺ sent someone to go and see where he was. He came back and said:

هو فى المسجد راقد

He is sleeping in the mosque.
The Prophet ﷺ went to the mosque and saw him lying in such a way that his cloak had slipped off one side of his body and he was covered in dust. The Prophet ﷺ began to wipe the dust off him, and at the same time said affectionately:

قم يا أبا تراب، قم يا أبا تراب

Reference: Sahih al-Bukhari and Fath al-Bari 535/1

Get up, O man of the dust, get up, O man of the dust.
This hadith also shows the permissibility of sleeping in the mosque when there is a need. However, according to the commentator on al-Bukhari, Hafiz Ibn Hajar (may Allah have mercy on him), it is possible to distinguish between a midday qaylulah and sleeping at night. And since this hadith alone indicates the general permissibility of sleeping in the mosque, if this distinction is accepted, it means there is no explicit evidence for sleeping at night that would indicate a ruling of permissibility. Therefore, in light of these hadiths, there is no objection to the conduct of the Tablighi Jamaat, but it is possible to advise them to reconsider.
In short, on the basis of these very hadiths the majority of the people of knowledge hold that sleeping in the mosque is permissible. However, a statement has been narrated from Ibn Abbas (may Allah be pleased with them both) that sleeping in the mosque is disliked, except for one who came not merely to sleep but for prayer and then also slept, in which case there is no harm. This is because Imam al-Baghawi in Sharh al-Sunnah reported his statement in ta’liq form (without a chain), that he used to say:

لا تتخذوه بيتا ومقيلا

Reference: Sharh al-Sunnah 739/2

Do not make the mosque a place for the qaylulah (that is, midday sleep) and for sleeping at night (except for the one who prays).
Whereas Ibn Mas’ud (may Allah be pleased with him) considered sleeping in the mosque disliked without exception. And Imam Malik (may Allah have mercy on him) said that if a person has his own house or lodging, sleeping in the mosque is disliked for him, and for one who has no house it is permissible.

Reference: Fath al-Bari 535/1. Nayl al-Awtar 228/2/1. Sharh al-Sunnah 739/2