Sura Al-Baqara

2:150

وَمِنْ حَيْثُ خَرَجْتَ فَوَلِّ وَجْهَكَ شَطْرَ ٱلْمَسْجِدِ ٱلْحَرَامِ ۚ وَحَيْثُ مَا كُنتُمْ فَوَلُّوا۟ وُجُوهَكُمْ شَطْرَهُۥ لِئَلَّا يَكُونَ لِلنَّاسِ عَلَيْكُمْ حُجَّةٌ إِلَّا ٱلَّذِينَ ظَلَمُوا۟ مِنْهُمْ فَلَا تَخْشَوْهُمْ وَٱخْشَوْنِى وَلِأُتِمَّ نِعْمَتِى عَلَيْكُمْ وَلَعَلَّكُمْ تَهْتَدُونَ

Ja, var du än har börjat din färd, vänd ditt ansikte mot den heliga Moskén. Var ni än befinner er, vänd er mot denna [Moské], så att inga människor får anledning att tvista med er - utom de som har onda avsikter. Oroa er inte [för vad de har i sinnet]; nej, frukta Mig! Då skall Jag ge er Min fulla välsignelse så att ni skall kunna följa den raka vägen.

Tafsir 2:150

Wherever you come from, O Prophet, when you want to pray, turn towards the direction of the Sacred Mosque; and wherever you may be, O believers, turn your face towards it if you want to pray, so that the people will have no argument against you, except those of them who are wrongdoers. They will remain in their stubbornness, arguing against you with the weakest of arguments. Do not fear them, but fear your Lord alone, following His instructions and keeping away from what He has prohibited. Allah instructed you to face the Kaaba to perfect His blessings upon you, distinguishing you from all other communities and guiding you to the noblest direction of prayer.