ভূমিকা
"The fools among the people will say: 'What has turned them from their Qiblah (direction of prayer) which they were facing at.' Say: 'Allah's is the East and the West; He guides whoever He pleases to a straight way’. " Occasion of the Change of Qiblah This verse together with a few verses following it refers to one of the great happenings in the history of Islam which caused a huge wave of excitement among the people of that time.
The explanation for the occurrence is that the Prophet of Islam (S), under divine direction, prayed towards the direction of Jerusalem for thirteen years in Mecca after proclaiming his mission and then, also, for several months in Medina after his migration. But again, under divine direction, the Qiblah (i.e. the direction of prayer) was changed and Muslims were commissioned to pray towards the Ka'bah.
The commentators are divided as to the length of time that Muslims worshipped facing towards Jerusalem in Medina. The duration of this ritual situation has been cited from seven to seventeen months. However, during this period, Muslims were always entangled with the reproaches of the Jews, because Jerusalem was originally the Jewish Qiblah.
Since the Muslims used to pray towards the direction of Jerusalem, the Jewish Qiblah, during that time, they blamed that their (Muslims) acceptance of their (Jewish) Qiblah proved, as they thought, that the Jews were right in their creed and Muslims, who were not independent for themselves in the direction of prayer, were not. These statements were difficult for the Prophet of Islam (S) and Muslims to bear.
They were, on one hand, showing obedience to the command of Allah, and, on the other hand, the ceaseless sarcasm of the Jews was intolerable. It was for this reason that by night (S) occasionally turned his face towards the heavens in a way that showed he was expecting to receive Divine revelation. After some time of waiting, finally the command for changing the Qiblah was revealed.