The intention was that the true believers and those who were...
The intention was that the true believers and those who were not sincere in their faith should be identified and the Prophet should fully recognize such persons, because the second order, in obedience to which he turned his face towards Masjidul Haram, while performing prayers, was the sign of faith in the new religion and disobedience and delay is a sign of double-mindedness and hypocrisy.
The Qur'an itself mentions this fact clearly in the following verse: We decreed your former qiblah only in order that We might know the Prophet's true adherents and those who were to disown him. It was indeed a hard test, but not for those whom Allah guided.
(Surah al-Baqarah, 2:143 ) No doubt, there are other reasons also for this change which we find from the history of Islam and from a study of the conditions then prevailing in the Peninsula, for example: 1 The Ka'bah, which had been constructed by Prophet Ibrahim, was respected by the entire Arab society. To declare such a place the 'qiblah' ensured satisfaction of the Arabs in general and attracted them towards Islam.
And there could be no target sublimer than that the obstinate polytheists who were far behind the caravan of civilization should embrace the true faith, and Islam should spread through them in all parts of the world.
There was no hope that the Jews of those days would embrace Islam and it, therefore, appeared necessary that the Muslims should remain at a distance from them, because they indulged in obstructionist activities and wasted the time of the Prophet by putting forward knotty questions, whereby, according to their own thinking, they displayed their knowledge and wisdom.
Change of qiblah was one of the manifestations of seeking distance from the Jews, just as fasting on the day of 'Ashurah' (10th of Muharram) was abolished for that very purpose. Before the advent of Islam the Jews used to fast on the day of 'Ashurah' and the Prophet and the Muslims had also been ordered to fast on that day. Later, however, orders regarding fasting on 'Ashurah' day were withdrawn and instead fasting during the month of Ramadan was made obligatory.
After all, Islam, which is superior to other religions in all respects, should manifest itself in such a way that the points of its perfection and superiority should become absolutely clear.