“To Allah belong the east and the West: Whithersoever ye turn, there is the presence of Allah.”
In consideration of the above verse the question that comes to mind is
: If Allah is present wherever we face, what then is the need to face the Qiblah (during the prayers)?
(The order for) facing the Qiblah is not at all intended to confine the presence of the Holy Allah in a particular direction. However, since man is a material entity and thus, must necessarily face a direction while offering his prayers, it has been ruled that all should face one particular direction during their prayers. This is with the objective of realizing unity and harmony amongst the Muslims, and preventing confusion, disorder and scattering amongst them. Just reflect how scathing and disorderly it would be if each person were to offer his prayers in a different direction and the people were to establish scattered rows (for the prayers)?
Incidentally, the direction that has been stipulated as the Qiblah (the direction towards the Ka'bah) is a region that is not only holy but also one of the most ancient bases of monotheism and so, directing oneself towards it serves to awaken the monotheistic reminiscences (within oneself).
5. What secrets lay behind the changing of the Qiblah?
The change of Qiblah from Bayt al-Maqdas to the holy Ka'bah was a puzzle for everyone; those who were of the opinion that every rule ought to be permanent and unchanging, mused: If we had to necessarily pray in the direction of the Ka'bah, why was it not ordered from the very onset? If Bayt al-Maqdas, which had been regarded as the Qiblah for the previous prophets was superior, why then was it changed?
The enemies too found the issue a fertile ground to poison the minds of the people. They probably might have said: At the start he (s.a.w) turned towards the Qiblah of the previous prophets but after tasting victories he was overcome by racial and nationalistic tendencies and therefore substituted it with the Qiblah of his own people!
Or they might have said: He initially accepted Bayt al-Maqdas to be his Qiblah in order to attract the Jews and the Christians towards his religion, but later, when he observed that it did not prove effective, he changed it to the Ka'bah.
The agitation and commotion that these whisperings must have generated - especially in a society in which the sediments of the eras of idolatry and polytheism still existed, and one that had yet to be completely illuminated by the light of knowledge, science, and faith - is all too evident.
As a result, the Qur`an explicitly states in verse 143 of Suratul Baqarah that this was a great trial to discern the stance adopted by the believers and the polytheists.
It is not improbable that one of the important reasons for the change in Qiblah could be the following issue: In that period, since the Ka'bah had been the hub for the idols of the polytheists it was ordered that the Muslims should temporarily offer their prayers in the direction of Bayt al-Maqdas and in this way separate their ranks and disassociate themselves from the polytheists. But when they emigrated to Madinah and established their own community and rule, and when their ranks were completely demarcated from that of the others, it was not necessary to continue with the existing posture and hence they returned towards the holy Ka'bah, the most ancient focal point of the prophets and the centre of monotheism.
It is plainly evident that offering prayers in the direction of Bayt al-Maqdas was very difficult for those, who regarded the Ka'bah to be the spiritual edifice of their own tribe, and equally difficult was the return towards the Ka'bah, after having become habituated to the first Qiblah.
In this manner the believers were placed in a crucible of examination in order that the traces of polytheism, which still existed within themselves, get burnt away in the hot furnace of this test, they sever their association with their polytheistic past, and there develops within them the spirit of absolute submission before the orders of Allah.
Basically, just as we have previously mentioned, Allah does not possess any place or location; the Qiblah is just a code for establishing unity within the ranks of the believers and reviving the reminiscences of monotheism and so, changing it would not transform anything. The important thing is to submit to His commands and shatter the idols of fanaticism, stubbornness and egotism.
 Tafsir-e-Namunah, vol. 1, pg. 415
 Tafsir-e-Namunah, vol. 1, pg. 485