For each [religious following] is a [prayer] direction toward which it faces. So race to [all that is] good. Wherever you may be, Allāh will bring you forth [for judgement] all together. Indeed, Allāh is over all things competent.
Every nation has a direction they turn to, whether physically or spiritually. For this reason, there is a difference between them in their directions of prayer and in their sacred laws. There is nothing wrong with them facing different directions if it is by Allah’s command and law, so try to outdo each other, O believers, in doing the good actions that you have been instructed to do. Allah will bring you together from wherever you may be on the Day of Judgement, to reward you according to what you have done. Allah has power over all things. It is not difficult for Him to bring you all together and reward you.