In our village in India, we have a small and very old mosque, built next to the graveyard. As it is on the one side of the village, access to it is difficult for most villagers. We want to build a new mosque, rather than repair or expand the existing one. Opinion differ on this with people living close to the present mosque objecting to a change of location, for obvious reasons. They say that it is not permissible to change the location of a mosque. Others feel that it is in the interest of most people to build a new mosque in a central area to give easier access to most villagers. Could you please explain whether it is appropriate to build a mosque in a graveyard? Can we change the location of the mosque? If so, what should we do with the old mosque when the new one is built? I may add that the government authorities are willing to give planning permission for a new mosque in a new location, but not to extend the present mosque, in order not to encroach on the graveyard.
The first thing to say here is that it is not permissible to build a mosque in a graveyard, or on top of it. The Prophet, peace be upon him, defined places where mosques or prayer places cannot be located. One of these is a graveyard. He also says: “God has rejected the Jews and Christians for having built their places of worship at the graves of their prophets.” If it is not permissible to have a place of worship at the grave of a prophet, it is similarly forbidden to have a mosque built at a graveyard.
In order to dispel any doubt, I would like to add that the Prophet’s Mosque in Madinah is not built next to the Prophet’s grave. The mosque existed at the time of the Prophet, peace be upon him, and it was next to his residential quarters. The Prophet, peace be upon him, died in the room of his wife Ayesha. As his companions were wondering where to bury him, Abu Bakr confirmed that he had heard the Prophet, peace be upon him, saying: “Every Prophet is buried at the spot where he dies.” Thus, Prophet Muhammad, peace be upon him, was buried in Ayesha’s room in his home. All extensions to his mosque were to the other side. When his grave and those of his two companions, Abu Bakr and Omar, were enclosed within a building, it was possible to extend the mosque in the rear.
In this case, where the old mosque is built at a graveyard, there must not be any extension of it. In fact, even if it was in good state, it should be pulled down because it is forbidden to have a mosque in a graveyard. That gives us a clear answer to the other questions. Relocating is obligatory. Hence, the people of the village should select the area, which best serves their interests.
There is no truth in what some of the villagers say that “once a mosque, always a mosque.” If it is determined that the interests of the community make a clear case for relocating a mosque, it should be relocated. It is wrong to have a mosque in an area where it will serve only a small section of the community.
But what do we do with the old mosque? Since the building is in bad repairs, that is another reason for having it pulled down. There is no need for such additional reason anyway, because its location makes it obligatory to pull it down. On the other hand, if the land on which the new mosque is to be built will be purchased, then the land of the present mosque may be sold and its price used in part payment for the land of the new mosque. Thus the original endowment are observed. If this is not needed and the land is an endowment, then it would be used for the benefit of the Muslim community.
Thus if the graveyard needs an extension, it can be annexed to it. If there is no need for that, then any sort of community use may be made of it, such as a recreational ground, a sports center, etc.