The Ruling on Praying in a Mosque with Graves

اردو میں پڑھیں
Font size:
Written by: Allamah Abdullah bin Abdur-Rahman al-Jibrin (may Allah preserve him)

The ruling on praying in a mosque containing a grave
Question: What is the ruling on praying in mosques in which graves have been built?
Answer: Praying in them is not correct; rather, it is necessary to repeat that prayer.
The Prophet ﷺ said:

الأرض كلها مسجد إلا المقبرة والحمام

Reference: Musnad Ahmad 92/3 and Sunan Abi Dawud, Kitab al-Salah, Bab fi al-Mawadi’ allati la Tajuzu fiha al-Salah, hadith 492. And Sunan al-Tirmidhi, Kitab al-Salah, Babma ja’a anna al-Ard Kulluha Masjid illa al-Maqbara wa al-Hammam, hadith 317. The hadith is sahih (authentic).

“The whole earth is a place of prayer (mosque) except the graveyard and the bathhouse.”
This hadith was narrated by Imam Ahmad and the authors of the Sunan, and Imam al-Hakim (may Allah have mercy on him) and others declared it sahih (authentic).
Imam Ibn Abi Shaybah and Imam Abd al-Razzaq narrated in their respective Musannaf from Anas (may Allah be pleased with him), who said:

رآني عمر وأنا أصلي إلى قبر ، فجعل يقول: يا أنس القبر وفي لفظ: القبر امامك ، فنهاني

Reference: Musannaf Ibn Abi Shaybah 155/2, Kitab al-Salah, Bab 665, hadith 7575/7574, and Musannaf Abd al-Razzaq 404/1, hadith 1581

“Umar (may Allah be pleased with him) saw me praying beside a grave and said: O Anas! The grave! In another wording it is reported that Umar (may Allah be pleased with him) said to Anas (may Allah be pleased with him): O Anas! The grave is in front of you. In this way he stopped me from praying in that place.”
Imam Ibn Hibban (may Allah have mercy on him) and Imam al-Bazzar narrated from Anas (may Allah be pleased with him) that:

أن النبى صلى الله عليه وسلم نهى أن يصلى بين القبور

Reference: Sahih Ibn Hibban 88/6, 2315 and al-Bazzar (Kashf al-Astar) 221/1, hadith 444, 443

“The Messenger of Allah ﷺ forbade praying between the graves.”
Most of the jurists, taking the plural word as the basis, have permitted that prayer may be offered where there is one grave or two graves. Some jurists have stated the reason that the prohibition of praying in a place containing graves is because of the pus of the dead and the smell that comes from the rotting and decay of their bodies, due to which this place is considered impure.
But Shaykh al-Islam Ibn Taymiyyah (may Allah have mercy on him) has critiqued these jurists on this issue, as mentioned in his book “Iqtida’ al-Sirat al-Mustaqim” (p. 332), the book “al-Ikhtiyarat” (p. 44), and the book “Majmu’ al-Fatawa” (521/4) (290/11) (502/17). Shaykh al-Islam Ibn Taymiyyah (may Allah have mercy on him) said that the main reason for forbidding prayer beside graves is that people might begin to worship these graves like idols, and this is the very cause that has led most people into either major shirk or minor shirk. Shaykh al-Islam (may Allah have mercy on him) has used as evidence on this issue the hadiths in which making graves into places of prayer is forbidden, as the Prophet ﷺ said:

ألا فلا تتخذوا القبور مساجد فإنى أنهاكم عن ذلك

Reference: Sahih Muslim, Kitab al-Masajid wa Mawadi’ al-Salah, Bab 3, hadith 532

“Beware! Do not take graves as places of prostration (mosques); I forbid you from this.”
This hadith was narrated by Imam Muslim (may Allah have mercy on him) from Jundub (may Allah be pleased with him). So if the reason here (for the prohibition of praying beside graves) were the fear of impurity, the Messenger of Allah ﷺ would not have forbidden making the graves of the prophets (peace be upon him) into places of prayer. As narrated from Aisha (may Allah be pleased with her) in Sahih al-Bukhari, that he ﷺ said during his final illness:

لعن الله اليهود والنصارى اتخذوا قبور أنبياءهم مساجد

Reference: Sahih Muslim, previous reference, hadith 529

“May Allah curse the Jews and the Christians, because they made the graves of their prophets (peace be upon him) places of prostration.”
And it is reported from Jundub (may Allah be pleased with him) in Sahih Muslim that:

ألا وان من كان قبلكم كانوا يتخذون قبور انبياءهم وصالحيهم مساجد

Reference: Sahih Muslim, hadith 532

“Listen! Those before you made the graves of their prophets and righteous people places of prayer (mosques). (But never do this, even by forgetfulness… etc.)”
And it is quite clear that the blessed bodies of the prophets (peace be upon him) do not rot or decay, as is reported in the hadith, so the earth also does not become impure. So it has now become apparent that praying beside these graves was forbidden because of the fear of excess and exaggeration in it, and the danger was also kept in view that people might begin to worship these graves like idols and statues. And Allah knows best!