Sure Al-Baqara

2:150

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

Und woher du immer heraustrittst, da wende dein Gesicht in Richtung der geschützten Gebetsstätte. Und wo immer ihr seid, da wendet eure Gesichter in ihrer Richtung, damit die Menschen kein Beweismittel gegen euch haben, außer denjenigen von ihnen, die Unrecht tun. - So fürchtet nicht sie, sondern fürchtet Mich! - Und damit Ich Meine Gunst an euch vollende, auf daß ihr rechtgeleitet werden möget.

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.