2:148
وَلِكُلٍّ وِجْهَةٌ هُوَ مُوَلِّيهَا ۖ فَٱسْتَبِقُوا۟ ٱلْخَيْرَٰتِ ۚ أَيْنَ مَا تَكُونُوا۟ يَأْتِ بِكُمُ ٱللَّهُ جَمِيعًا ۚ إِنَّ ٱللَّهَ عَلَىٰ كُلِّ شَىْءٍ قَدِيرٌ
walikullin wij'hatun huwa muwallīhā fa-is'tabiqū l-khayrāti ayna mā takūnū yati bikumu l-lahu jamīʿan inna l-laha ʿalā kulli shayin qadīrun
Each community has its own direction to which it turns: race to do good deeds and wherever you are, God will bring you together. God has power to do everything.
For every nation there is a direction to which they face (in their prayers). So hasten towards all that is good. Wheresoever you may be, Allâh will bring you together (on the Day of Resurrection). Truly, Allâh is Able to do all things.