Is it permissible to pray in a mosque that has a graveyard next to it?
Prayer & PurificationQ&A answerQ&AThe Fiqh of Salah17 Oct 2022ul58GZKiYwMThe video starts at 53:24, where this question begins.
The answer
If the graveyard is outside the masjid and it's not a part of the masjid, this is something separate. But if the graveyard and the masjid were linked together, such that the masjid was built because of the grave, or the person was buried inside the masjid, then we have a problem, and something should be done about that by the authorities.
Yeah, so here we make a distinction. Was the graveyard built simply because it was convenient and there was open land outside the masjid, in which case it is permissible? Or was the person buried because of the masjid, and he got special treatment, and they wanted to give him a burial because he was a person of holiness? This is the point.
It is common in many Muslim lands that they have a plot, and they take one corner as the masjid and one corner or one area as the graveyard, and there is a distinction between the two: on the right-hand side, the masjid on the left-hand side, or something like this. And to this day, if you go to many cities, you will find the graveyard and the masjid close by one another, but they are not built for each other. It's just a matter of convenience. Nobody prays there five times a day.
But let's be realistic here, in our MIC. If we were to have a plot of land, which we are hoping one day maybe to have, our own plot of land here, would this be haram? Of course not, because we are building a convenient place. But suppose in some Muslim land a person died who was a wali, a saint or whatnot, and they said, "Oh, he should be buried next to the masjid," and there is no graveyard; they make an exception for this person. Or the other way around: "This is the qabr of so-and-so, so we should build a masjid," and there is no masjid, and they build the masjid because of the qabr of so-and-so. This is when it will become problematic. Otherwise, if it just happens because of land issues, and all the Muslims are buried there, this is not inherently a problem, inshaAllah.
The Masjid al-Nabawi is an example of this: it was not intended. It just happened as a historical reality that the masjid expanded in that direction. Otherwise, the Prophet ﷺ was buried outside his masjid, as we mentioned.
An edited transcript of the video, lightly cleaned up for reading. The video is the source; if the text and the video differ, the video is correct.
Related questions
Is it true that we cannot pray in a graveyard?
Is it halal to charge my phone at the masjid using its electricity?
Should loudspeaker adhans be toned down when they become a nuisance, in Muslim lands and in the West?
What does the name Masjid al-Aqsa mean, and what are its other names?
What are the blessings of Masjid al-Aqsa?
How much more reward is there for praying in Masjid al-Aqsa?
What area counts as Masjid al-Aqsa, and is the Dome of the Rock part of it?
Is it correct to call Masjid al-Aqsa the third haram?