Performing Salah in Mosques Containing Graves

اردو میں پڑھیں
Font size:
This excerpt is taken from the book Ahkam wa Masa’il Kitab wa Sunnat ki Roshni mein by Shaykh Mubashir Ahmad Rabbani.

Question: Is it permissible to pray in mosques that contain graves? Will the prayer be valid?
Answer: One should avoid praying in mosques that contain graves.
First, consider a few hadiths about praying in a place with graves or facing graves:
➊ It is narrated from Aisha (may Allah be pleased with her) that Umm Habiba and Umm Salama (may Allah be pleased with them both) mentioned to the Prophet ﷺ a church in Abyssinia and the pictures placed in it, so he ﷺ said:

إن اولئك إذا كان فيهم الرجل الصالح فمات، بنوا على قبره مسجدا وصوروا فيه تلك الصور، فاولئك شرار الخلق عند الله يوم القيامة

Reference: بخاري, كِتَاب الصَّلَاةِ, بَابُ هَلْ تُنْبَشُ قُبُورُ مُشْرِكِي الْجَاهِلِيَّةِ, وَيُتَّخَذُ مَكَانَهَا مَسَاجِدٌَ, مسلم 528, Sunan al-Nasa’i 705

“Indeed, when a righteous man among them died, they would build a mosque over his grave and make pictures in it. Those people will be the worst of creation in the sight of Allah on the Day of Resurrection.”
➋ It is narrated from Aisha (may Allah be pleased with her) that the Messenger of Allah ﷺ said:

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

Reference: بخاري, كتاب الجنائز, باب ما جاء فى قبر النبى صلى الله عليه وسلم وأبي بكر وعمر رضي الله عنهما

1390, Muslim 1186 ]
“May Allah curse the Jews and the Christians, for they made the graves of their prophets into mosques.”
➌ It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah ﷺ said:

قاتل الله اليهود والنصارى، اتخذوا قبور انبيائهم مساجد

Reference: مسلم, كتاب المساجد ومواضع الصلاة, باب النهي عن بناء المساجد على القبور —–

“May Allah destroy the Jews, who made the graves of their prophets into mosques.”
➍ In a long narration from Jundab (may Allah be pleased with him), the Messenger of Allah ﷺ said before his death:

الا وإن من كان قبلكم، كانوا يتخذون قبور انبيائهم وصالحيهم مساجد، الا فلا تتخذوا القبور مساجد، إني انهاكم عن ذلك

Reference: مسلم, كتاب المساجد ومواضع الصلاة, باب النهي عن بناء المساجد على القبور 1188

“Beware! Those who were before you (the Jews and Christians) used to make the graves of their prophets and righteous people into mosques. Beware! Do not make graves into mosques; I forbid you from this.”
From these hadiths it is known that building mosques over graves is forbidden and prohibited in the Shariah, so praying in such mosques is all the more prohibited. Understand it through this example: buying and selling wine is prohibited. Within this prohibition the prohibition of drinking wine is also contained, because buying and selling wine is a means, and its purpose is drinking wine; and the Shariah principle is that the prohibition of a means also includes the purpose of that means.
Likewise, building a mosque is a means and the purpose is to perform prayer. When building mosques over graves is forbidden, praying inside those mosques will also be forbidden. When the Shariah commanded the building of mosques, the command to pray is also contained within it, because the purpose of building a mosque is to perform prayer. For this reason Imam Ibn Hazm (may Allah have mercy on him) has narrated from Imam Ahmad (may Allah have mercy on him) that he said:

من صلٰي فى مقبرة او الٰي قبر اعاد ابدا

Reference: المحلي لابن حزم 27/4, 28

“Whoever prays in a place with graves or toward a grave, let him repeat his prayer without fail.”
Abu Marthad al-Ghanawi (may Allah be pleased with him) says: I heard the Messenger of Allah ﷺ say:

لا تصلوا الي القبور ولا تجلسوا عليها

Reference: مسلم, كتاب الجنائز: باب النهي عن الجلوس على القبر والصلاة عليه 972, أبويعلي 1514, أحمد 135/4, Sunan al-Tirmidhi 1050, Sunan Abi Dawud 3229, Sunan al-Nasa’i 761, ابن خزيمة 793, ابن حبان 2311

“Do not pray toward graves, and do not sit on them.”
It is narrated from Abu Sa’id al-Khudri (may Allah be pleased with him) that the Messenger of Allah ﷺ said:

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

Reference: Sunan al-Tirmidhi, أبواب الصلاة: باب ما جآء أن الأرض كلها مسجد 317, Sunan Abi Dawud 492, ابن ماجه 745, أحمد 83/3, دارمي 1397, كتاب الأم492/1, ابن خزيمة 791, ابن حبان 338, حاكم 251/1

“The whole earth is a mosque except the place of graves and the bathhouse.”
Ibn Khuzaymah, Ibn Hibban, al-Hakim and al-Dhahabi (may Allah have mercy on them) have declared this hadith sahih (authentic). Some imams have declared it to have a hidden defect, but the correct view is that it is narrated both as mursal and as mawsul (connected), and the narrator who reports it as mawsul is trustworthy. When there is a dispute between mursal and mawsul, the ruling goes to the mawsul. Imam al-Nawawi (may Allah have mercy on him) in Sharh Muslim has specifically quoted the statement of Imam al-Bukhari and Imam Muslim (may Allah have mercy on them both) that, in their view, when there is a dispute between mursal and mawsul, the ruling goes to the mawsul.

Reference: شرح مسلم 256/1۔ 282

Allamah al-Iraqi has also said the same.

Reference: شرح الفيه 83/1

It is narrated from Anas ibn Malik (may Allah be pleased with him):

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

Reference: موارد الظمآن 345, مسند بزار 441, مجمع الزوائد 30/2, طبراني أوسط 5627

Imam al-Haythami (may Allah have mercy on him) says that Imam al-Bazzar narrated it and its narrators are narrators of the Sahih. One supporting report (shahid) for it exists from Abdullah ibn Amr in Sahih Ibn Hibban.

Reference: موارد الظمآن 342, تلخيص الحبير 277/1

And another supporting report exists from Ali (may Allah be pleased with him) in Abu Dawud 490, al-Bayhaqi 1451/2 and Talkhis al-Habir 277/1.
“The Prophet ﷺ forbade praying between the graves.”
It is narrated from Abdullah ibn Amr (may Allah be pleased with him) that the Messenger of Allah ﷺ said:

اجعلوا فى بيوتكم من صلاتكم، ولا تتخذوها قبورا

Reference: بخاري,كتاب الصلاة, باب كراهية الصلاة فى المقابر 432, Sunan al-Tirmidhi 451, مسلم, كتاب صلاة المسافرين وقصرها 208, Musnad Ahmad 16/2, Sunan Abi Dawud 1448, ابن ماجه 1377

“Perform some of your prayer in your homes, and do not make them graveyards.”
It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah ﷺ said:

لا تجعلوا بيوتكم مقابر، إن الشيطان ينفر من البيت الذى تقرا فيه سورة البقرة

Reference: مسلم, كتاب صلاة المسافرين وقصرها, باب استحباب صلاة النافلة فى بيته وجوازها فى المسجد و سواء فى هذا الراتبة وغيرها 780

“Do not make your homes graveyards. Indeed, Satan flees from the house in which Surat al-Baqarah is recited.”
From these hadiths it is known that praying in a place with graves is forbidden. As for the prohibition, in the hadiths of Ibn Amr and Abu Hurayrah (may Allah be pleased with them both), of making homes into graveyards, the reason for it appears to be that prayer is not offered in a place of graves, nor is the Quran recited there. Therefore do not make your homes into graveyards; rather, pray the voluntary prayers in your homes so that they do not become graveyards.
Imam al-Suyuti (may Allah have mercy on him) says in his marginal notes on al-Nasa’i:
Imam al-Kirmani (may Allah have mercy on him) has mentioned the meaning of وَلَا تَتَّخِذُوْهَا قُبُوْرًا as:
“Do not make them like graves, because prayer is not offered in graves.”

Reference: حاشية سندهي مع سيوطي على Sunan al-Nasa’i 219/3

And in the same place Allamah al-Sindi (may Allah have mercy on him) writes:

اي كالقبور فى الخلو عن ذكر الله والصلاة

“Do not make homes like graves, where there is no remembrance of Allah and no prayer.”
In these hadiths the prohibition of praying in a place with graves is general, whether the grave is on the right or the left, in front or behind, because the hadith of prohibition is general, and as long as the general ruling is not specified by some evidence from the Book and the Sunnah, the indication of the general remains.
Imam Ibn Taymiyyah (may Allah have mercy on him) says:
“Prayer is valid neither in a place with a grave nor toward a grave, and the reason for the prohibition is to close the path to shirk. Some of our companions have mentioned that one or two graves do not prevent prayer, because the word ‘graveyard’ is not used for them. A graveyard is the term for three or more graves. There is no such distinction in Imam Ahmad (may Allah have mercy on him) and his general companions; rather, the generality of their statement, of the underlying reason and of the reasoning prevents prayer even beside a single grave, and this is the correct and true view. A graveyard is any place in which a grave is made, not a collection of graves.”

Reference: الاختيارات العلمية لابن تميمة 25

Our companions have said that in the surroundings of graves, no place that falls under the name of a graveyard should be prayed in. This determines that the prohibition of prayer includes even a single grave.
From the above evidences of the Quran and the Sunnah and the explanations of the imams and hadith scholars, it is known that prayer is not valid in a place with a grave; therefore avoiding it is extremely necessary.