The funeral prayer takes precedence over the obligatory prayer in this situation
Machine translationRead the Arabic original
Q: If a person enters the mosque to pray over a funeral and has not yet performed the obligatory prayer, should he perform the obligatory prayer first, or join them in the funeral prayer? And if the funeral is carried away, should he pray over it?
A: He should pray over the funeral with them, then perform the obligatory prayer; because the funeral is missed if delayed, whereas the obligatory prayer is not missed. However, if the funeral is carried away, he should not pray over it; rather, he should follow it and pray over it after the burial or at the grave.
A: He should pray over the funeral with them, then perform the obligatory prayer; because the funeral is missed if delayed, whereas the obligatory prayer is not missed. However, if the funeral is carried away, he should not pray over it; rather, he should follow it and pray over it after the burial or at the grave.
Source
binbaz.org.sa
The Arabic text is copied verbatim from the original source, without any edits.
