The World Federation One Stop Fiqh

Ritual 64

If a person sets out on a pilgrimage as on behalf of another who cannot do it himself for ill health and the mandator dies while the agent is performing the pilgrimage, the pilgrimage of the agent will be valid, although the pilgrimage had become obligatory on the mandator. If, per chance, the illness ceases before death, it is preferable that the pilgrimage be performed personally, as a matter of precaution. If the illness ceases after the agent has assumed ihram, it is obligatory on the mandator to perform the pilgrimage himself even though the agent must complete the ceremonies, as a matter of precaution.