This is one of the most transparent examples of "revelation" being used as a tool for political and social expediency. This isn't divine guidance; it's a theological U-turn necessitated by Muhammad’s failed diplomacy with the Jewish community in Medina.
Firstly, God is everywhere. Physical direction is irrelevant to the Infinite. In the early days in Medina, Muhammad and his followers faced Jerusalem for prayer. This was a clear attempt to gain legitimacy among the Jews by aligning with their tradition.
Surah 2:115:
To Allah belongs the east and the west. So wherever you turn, there is the Face of Allah.
God now demands you face a specific stone building in a specific city. When the Jews of Medina rejected Muhammad's claim to prophethood and pointed out his scriptural errors, the "revelation" suddenly changed.
Surah 2:144:
We have certainly seen the turning of your face toward the heaven... so turn your face toward al-Masjid al-Haram.
The only reason to mandate Mecca was to establish a distinct nationalistic Arab identity apart from Judaism.
Jesus explicitly corrects the idea of a "sacred direction" in the Gospel of John.
John 4:21-24:
Woman, believe me, the hour is coming when neither on this mountain nor in Jerusalem will you worship the Father... God is spirit, and those who worship him must worship in spirit and truth.
The Quran re-chained it to a physical location (the Kaaba). By mandating a specific direction, Islam turns God into a local deity tied to a coordinate on a map, contradicting the "East and West" claim of 2:115.
If 2:115 is an eternal truth, then 2:144 is a ritualistic burden that adds nothing to the worship of an omnipresent God. If 2:144 is a mandatory requirement for valid prayer, then 2:115 was a deception or an error.
The change of the Qibla is a "smoking gun" of the Quran: it shows a deity who follows the desires of his prophet (as 2:144 explicitly says: "We will surely turn you to a qibla with which you will be pleased"), rather than a prophet who follows the unchanging nature of God.
Does this transition highlight a "mercy" from God, or does it look more like a 7th-century leader pivoting his strategy after a political rejection?
This is not the behavior of an eternal, unchanging God; it is the behavior of a leader reacting to his critics and shifting his "divine" policy to suit his current political climate.