Is everything located within the cemetery wall considered part of it, such that prayer is not permissible therein, especially given the presence of inhabited houses inside it?
Prayer in houses built in a graveyard does not take the ruling of praying towards graves, as long as there are no graves within them, and prayer in them is valid.
If the graveyard is endowed (waqf), building within it is not permissible unless it is for the benefit of the graveyard or stipulated by the endower; otherwise, the construction is considered usurped, and the ruling for praying in it is the same as praying on usurped land.
If the graveyard is privately owned, building within it is not permissible except with the owner's permission; otherwise, the construction is considered usurped.
However, if houses are built on graves that have decayed and no trace of the deceased remains, then building is permissible, and prayer in them is valid. But if the graves have not decayed and a trace of the deceased remains, building upon them is not permissible, and prayer in them is not allowed.
Men must not fail to attend congregational prayers and pray in these houses unless there is a valid excuse.
Summarized from the full answer at Ftawy · reviewed Sep 2, 2026
Read the full answer on Ftawyhttps://ftawy.com/en/questions/51791