Question:
Is it permissible to build a mosque over the grave of a prophet or a saint (wali)?
Answer:
Building a mosque over graves is prohibited and forbidden.
❀ Aisha (may Allah be pleased with her) narrates:
لما اشتكى النبى صلى الله عليه وسلم ذكرت بعض نسائه كنيسة رأينها بأرض الحبشة يقال لها : مارية، وكانت أم سلمة، وأم حبيبة رضي الله عنهما أتنا أرض الحبشة، فذكرنا من حسنها وتصاوير فيها، فرفع رأسه، فقال : أولئك إذا مات منهم الرجل الصالح بنوا على قبره مسجدا، ثم صوروا فيه تلك الصورة أولئك شرار الخلق عند الله
“When the Prophet ﷺ fell ill, one of his wives mentioned a church that they had seen in the land of Abyssinia. That church was called “Maria”. Umm Salama and Umm Habiba (may Allah be pleased with them both) had gone to the land of Abyssinia, and they mentioned its beauty and the pictures that were in it. He ﷺ raised his head and said: These are the people who, when a righteous man among them died, would build a mosque over his grave. Then they would make those pictures in that mosque. These are the worst of creation in the sight of Allah.”
❀ Aisha (may Allah be pleased with her) narrates that the Prophet ﷺ said during his final illness:
لعن الله اليهود والنصارى اتخذوا قبور أنبيائهم مسجدا، قالت : ولولا ذلك لأبرزوا قبره غير أني أخشى أن يتخذ مسجدا .
“May Allah curse the Jews and the Christians. They made the graves of their prophets into mosques. Aisha (may Allah be pleased with her) says: It was feared that the grave of the Prophet ﷺ would be made into a mosque, otherwise the grave would have been left open.”
❀ Jundab bin Abdullah al-Bajali (may Allah be pleased with him) narrates that he heard the Prophet ﷺ say five days before his death:
إني أبرأ إلى الله أن يكون لي منكم خليل، فإن الله تعالى قد اتخذني خليلا، كما اتخذ إبراهيم خليلا، ولو كنت متخذا من أمتي خليلا لاتخذت أبا بكر خليلا، ألا وإن من كان قبلكم كانوا يتخذون قبور أنبيائهم وصالحيهم مساجد، ألا فلا تتخذوا القبور مساجد، إني أنهاكم عن ذلك .
“I declare before Allah that I have no khalil (intimate friend) among you, for my Lord has taken me as a khalil, just as He took Ibrahim (peace be upon him) as a khalil. Had I taken a khalil from my Ummah, I would have taken Abu Bakr as khalil. Beware! Those before you made the graves of their prophets and righteous people into places of prostration. Do not make graves places of prostration; I forbid you from that.”
❀ Shaykh al-Islam Ibn Taymiyyah (may Allah have mercy on him)
says:
لو كان قبر نبي أو رجل صالح لم يشرح أن يبنى عليه مسجد بإجماع المسلمين وبسنة رسول الله صلى الله عليه وسلم المستفيضة عنه.
“Building a mosque over the grave of a prophet or a saint is not legislated; the Muslims are in consensus on this, and there are also well-known and famous hadiths from the Messenger of Allah ﷺ on this matter.”