Which is better: to pray over the deceased at the graveyard before burial or after, in the event that the funeral prayer was not performed at the mosque?
The Sunnah is to pray over the deceased in the funeral prayer area outside the mosque. However, there is no harm in praying over them inside the mosque. As for someone who missed the funeral prayer with the congregation, it is better for them to pray over the deceased before burial. If they are unable to do so, they should pray over them after burial, as it has been authentically reported that the Prophet, peace and blessings be upon him, prayed over a grave.
Summarized from the full answer at Ftawy · reviewed Sep 2, 2026
Read the full answer on Ftawyhttps://ftawy.com/en/questions/17947