It is not permitted to bury a Muslim in a place that is disrespectful to him, such as a place where rubbish and dirt are thrown. Ruling 611.* It is not permitted to bury a corpse in a place that is usurped nor in the ground of a place like a mosque, ḥusayniyyah,[1] or religious school that has been given as a charitable endowment (waqf) for purposes other than burial if it causes damage to the endowment or inconveniences the purpose of the endowment.
In fact, based on obligatory precaution, it is not permitted even if it does not cause damage or inconvenience. Ruling 612.* It is not permitted to exhume a grave for another corpse to be buried there unless the grave is very old, the first corpse has completely decomposed, and the act would not necessitate sinning, such as encroaching on the right of another person.