Question:
What is the ruling on praying in a graveyard?
Answer:
Praying in a graveyard is not permissible. It is prohibited. Praying near graves can also become a means to the shirk of grave-worship, so this too has been forbidden. There are mutawatir hadiths from the Prophet ﷺ on this subject.
Abdullah ibn Umar (may Allah be pleased with him) narrates that the Prophet ﷺ said:
اجعلوا فى بيوتكم من صلاتكم، ولا تتخذوها قبورا.
Perform some part of your prayer in your homes, and do not turn them into graveyards.
Imam al-Bukhari (may Allah have mercy on him) has established a chapter heading for this hadith with the words:
باب كراهية الصلاة فى المقابر.
The chapter on the dislike of praying in graveyards.
❀ Imam Ibn al-Mundhir (may Allah have mercy on him)
says:
أبين البيان على أن الصلاة فى المقبرة غير جائز.
This hadith is a very clear proof that praying in a graveyard is not permissible.
❀ He also says:
في قوله: ولا تتخذوها قبورا، دليل على أن المقبرة ليست بموضع صلاة لأن فى قوله: اجعلوا فى بيوتكم من صلاتكم، حث على الصلوات فى البيوت وقوله: ولا تتخذوها قبورا، يدل على أن الصلاة غير جائزة فى المقبرة.
The statement of the Prophet ﷺ: “Do not turn your homes into graveyards” is a proof that a graveyard is not a place of prayer, because in the statement of the Prophet ﷺ: “Perform some part of your prayer in your homes” there is encouragement to pray in homes, and the statement of the Prophet ﷺ: “Do not turn your homes into graveyards” is a proof that praying in a graveyard is not permissible.
Abu Marthad al-Ghanawi (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said:
لا تصلوا إلى القبور.
Do not pray towards graves.
❀ Hafiz al-Nawawi (may Allah have mercy on him)
says:
(On the basis of the hadith of Abu Marthad al-Ghanawi, may Allah be pleased with him, even if praying in a graveyard were declared forbidden) it would not be far-fetched.
Abu Hurayrah (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said:
لا تجعلوا بيوتكم قبورا، ولا تجعلوا قبري عيدا، وصلوا علي؛ فإن صلاتكم تبلغني حيث كنتم.
Do not turn your homes into graveyards, and do not make my grave a festival, and send blessings upon me; your blessings reach me wherever you are.
Hafiz al-Nawawi (may Allah have mercy on him)
and Hafiz Ibn Hajar (may Allah have mercy on him)
have declared its chain sahih (authentic).
❀ Shaykh al-Islam Ibn Taymiyyah (may Allah have mercy on him)
says:
هذا إسناد حسن، فإن رواته كلهم ثقات مشاهير.
Its chain is hasan (good); all its narrators are well-known thiqah (reliable) narrators.
❀ Anas ibn Malik (may Allah be pleased with him) narrates:
رآني عمر وأنا أصلي، فقال: القبر أمامك فنهاني.
I was praying when Umar ibn al-Khattab (may Allah be pleased with him) saw me and said: There is a grave in front of you. He forbade me (from praying facing the grave).
❀ Musayyab ibn Rafi’ (may Allah have mercy on him) and Khaythamah ibn Abd al-Rahman (may Allah have mercy on him) say:
لا تصل إلى حائط حمام، ولا وسط مقبرة.
Do not pray facing the wall of a bathhouse, nor in the middle of a graveyard.
It is reported about Imam Makhul (may Allah have mercy on him):
إنه كان يكره الصلاة فى المقابر.
He (may Allah have mercy on him) disliked praying in graveyards.
❀ Imam Abu Bakr al-Athram (may Allah have mercy on him)
says:
إنما كرهت الصلاة فى المقبرة للتشبه بأهل الكتاب؛ لأنهم يتخذون قبور أنبيائهم وصالحيهم مساجد.
Praying in a graveyard is disliked only because it resembles the People of the Book; they used to make the graves of their prophets and righteous people places of prostration.
❀ Allamah Ibn Hazm (may Allah have mercy on him)
says:
لا تحل الصلاة فى مقبرة، مقبرة مسلمين كانت أو مقبرة كفار، ولا إلى قبر، ولا عليه، ولو أنه قبر نبي أو غيره.
Praying in a graveyard is not permissible, whether it is a graveyard of Muslims or of disbelievers. Likewise, praying towards a grave or upon a grave is not permissible, even if the grave is that of a prophet or of someone else (a saint).
Shaykh al-Islam Ibn Taymiyyah (may Allah have mercy on him)
says:
أئمة الدين متفقون على النهي عن ذلك وأنه ليس لأحد أن يقصد الصلاة عند قبر أحد لا نبي ولا غير نبي، وكل من قال: إن قصد الصلاة عند قبر أحد أو عند مسجد بني على قبر أو مشهد أو غير ذلك، أمر مشروع بحيث يستحب ذلك ويكون أفضل من الصلاة فى المسجد الذى لا قبر فيه، فقد مرق من الدين، وخالف إجماع المسلمين، والواجب أن يستتاب قائل هذا ومعتقده، فإن تاب وإلا قتل.
The imams of the religion are agreed on this (the prohibition of praying near a grave). According to them it is not permissible for anyone to pray near the grave of a prophet or a non-prophet. Those who say that praying at a grave, or in a mosque built over a grave, or at a shrine and the like is legislated and recommended, and better than praying in an ordinary mosque, have left the religion and deny the consensus of the Muslims. It is necessary to have the one who says this call for repentance; if he repents, well and good, otherwise he should be killed.
❀ He also says:
لا تصح الصلاة فى المقبرة ولا إليها، والنهي عن ذلك إنما هو لسد ذريعة الشرك.
A prayer offered in a graveyard or facing a grave is not valid. The prohibition of it is because it may become a means to shirk.
❀ He also says:
المشهور عندنا أنها محرمة لا تصح، ومن تأمل النصوص المتقدمة تبين له أنها محرمة بلا شك، وأن صلاته لا تصح.
The well-known position among us is that praying in a graveyard is forbidden, and the prayer in a graveyard is not valid. Whoever reflects on these textual proofs will know that praying in a graveyard is undoubtedly forbidden and that the prayer in a graveyard is not valid.
The people of knowledge differ about praying in a graveyard. Imam Ahmad ibn Hanbal (may Allah have mercy on him), Imam al-Shafi’i (may Allah have mercy on him), Imam Ishaq ibn Rahawayh (may Allah have mercy on him) and the Hanafi scholars hold that praying in a graveyard is not permissible, whereas the Maliki scholars consider it permissible. The correct and preponderant view is that praying in a graveyard is not permissible; this is what is understood from the general wording of the hadiths. And Allah knows best!