All perfect praise be to Allaah, The Lord of the worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and messenger.
There is no difference between someone dying in his country among his family and loved ones and dying in another country. The most important thing is the final state of his faith before he died, not the place of death.
There is no harm if the family of the deceased performs funeral prayer for the absent dead. It is also permissible for them to transfer his body to their country and bury him there if he is not already buried in the place where he died. This applies as long as transferring his body will not result in the delay of burial and the probability of change in the corpse. It is not from the Sunnah to delay burial if there is no need to do so. The Prophet, sallallaahu ‘alayhi wa sallam, urged us to hasten the funeral and burial as much as possible.
Allaah Knows best.