Sure Al-Baqara

2:149

وَمِنْ حَيْثُ خَرَجْتَ فَوَلِّ وَجْهَكَ شَطْرَ ٱلْمَسْجِدِ ٱلْحَرَامِ ۖ وَإِنَّهُۥ لَلْحَقُّ مِن رَّبِّكَ ۗ وَمَا ٱللَّهُ بِغَٰفِلٍ عَمَّا تَعْمَلُونَ

Und woher du immer heraustrittst, da wende dein Gesicht in Richtung der geschützten Gebetsstätte. Es ist wirklich die Wahrheit von deinem Herrn. Und Allah ist nicht unachtsam dessen, was ihr tut.

Tafsir 2:149

Wherever you come from and wherever you are, you, O Prophet, and your followers are to face towards the Sacred Mosque (the Kaaba in Makkah) when you want to pray. It is the truth that has been revealed to you from your Lord. Allah is not unaware of what you do. Rather, He is aware of all that you do, and you will be rewarded accordingly.