Is it permissible to pray in a mosque that has a grave?
الحمد للہ، والصلاة والسلام علی رسول اللہ، أما بعد!
Regarding a mosque in which a grave is present, the scholars have stated the ruling for two different cases:
The first case:
*The mosque was built over the grave*
◈ If the grave was already there and the mosque was built afterwards, this act is impermissible.
◈ It is obligatory to abandon such a mosque, and praying in it is not valid.
◈ It is necessary to demolish such a mosque.
◈ If the builder does not demolish it himself, it is the responsibility of the Islamic government to demolish it.
The second case:
*The mosque was built first, then someone was buried in it*
If the mosque was already established and a deceased person was buried in it afterwards, then:
◈ It is obligatory to exhume that grave from there and bury the body in the general graveyard of the Muslims.
◈ In this case, prayer in the mosque is permissible provided that the grave is not in front of the worshipper.
◈ Because the Prophet ﷺ forbade praying facing graves.
Clarification regarding the grave of the Prophet ﷺ and the Prophet’s Mosque
◈ Before the death of the Prophet ﷺ, the construction of the Prophet’s Mosque had been completed, that is, the mosque was not built over a grave.
◈ He ﷺ was not buried in the mosque but was buried in his house, which was separate from the mosque.
Later, the caliph al-Walid ibn Abd al-Malik wrote a letter in 88 AH to the governor of Medina, Umar ibn Abd al-Aziz (may Allah have mercy on him):
◈ He ordered him to expand the Prophet’s Mosque and to include the chambers of the Mothers of the Believers.
Umar ibn Abd al-Aziz (may Allah have mercy on him):
◈ Gathered the jurists and the leading men for consultation on this.
◈ All of them said that leaving them as they were would be more of a lesson.
◈ Sa’id ibn al-Musayyib (may Allah have mercy on him) opposed including the chamber of Aisha (may Allah be pleased with her) in the mosque, fearing that the grave would be made a place of prostration.
◈ Umar ibn Abd al-Aziz (may Allah have mercy on him) wrote all of this to al-Walid and informed him, but al-Walid insisted that his order be carried out.
Therefore, it is clear that:
◈ Including the grave of the Prophet ﷺ in the mosque happened later and out of necessity.
◈ Neither was the Prophet’s Mosque built over a grave, nor was the Prophet ﷺ buried in the mosque.
◈ Therefore, those who build mosques over graves or make graves inside mosques have no proof in this incident.
The ruling in the light of the hadiths of the Prophet ﷺ
1.
((لَعْنَۃُ اللّٰہِ عَلَی الْیَہُودِ وَالنَّصَارٰی اتَّخَذُوا قُبُورَ أَنْبِیَائِہِمْ مَسَاجِدَ))
Translation: “May Allah’s curse be upon the Jews and the Christians, for they made the graves of their prophets places of prayer.”
The Prophet ﷺ said this hadith at the time of his death, that is, he strictly forbade his ummah from this act.
2.
Umm Salamah (may Allah be pleased with her) mentioned to the Prophet ﷺ a church (kanisah) in Abyssinia in which there were pictures, so he ﷺ said:
((أُولٰٓئِکِ إِذَا مَاتَ فیْہُمُ الرَّجُلُ الصَّالِحُ او العبد الصالح بَنَوْا عَلَی قَبْرِہِ مَسْجِدًا ثُمَّ صَوَّرُوا فِیہِ تِلْکَ الصُّورَۃَ أُولٰٓئِکِ شِرَارُ الْخَلْقِ عِنْدَ اللّٰہِ))
Translation: “Those were people who, when a righteous man or a righteous servant among them died, would build a place of worship over his grave, then make those pictures in it. Such people are the worst of creation in the sight of Allah.”
3.
((اِنَّ مِنْ شِرَارِ النَّاسِ مَنْ تُدْرِکُہمُ السَّاعَۃُ وَہُمْ اَحْیَائٌ، وَالذینْ یَتَّخِذونُ الْقُبُورَ مَسَاجِدَ))
Translation: “Among the worst of people will be those upon whom the Hour comes while they are alive, and those who take graves as places of prayer.”
Conclusion:
◈ It is not permissible for a believer to follow the path of the Jews and the Christians.
◈ Nor can any Muslim wish to be counted among the worst of creation in the sight of Allah.
ھذا ما عندي والله أعلم بالصواب