Surah 2

Surah 2:144

"We do see you turning your face about in the sky, and We shall indeed turn you in a direction which you will be pleased with. Turn your face in the direction of the Sacred Mosque, and wherever you are, turn your faces in its direction. Surely those who have been given the Book know indeed that it is the truth from their Lord. God is not oblivious of what they do."

2.144 – We do see you turning your face about in the sky

The Quran directly addresses the messenger to approve his preference for the direction of prayer.

- from The Quran with Christian Commentary: A Guide to Understanding the Scripture of Islam