Confused On Qibla Change
It was changed for the prophet and his followers. Before that it was the qibla for all. This first directive is not mentioned in the Qur’an. We come to know of it when God mentions the transfer of the qibla back to Kaaba.
The prophet used to pray in Makkah while facing Bait al-Maqdis. He could face both Kaabah and Bait al Maqdis in Makkah, especially in Haram. When he migrated, we find the prophet and his companions facing Bait al-Maqdis in Madina. It was not possible anymore to face both, as both were in different directions now. Then came the directive of the change of Qibla to Kaabah which was the desired by the prophet. The reason for the change of Qibla was that first, it was the test of the Arabs who preferred Kaabah, they were asked to face Bait al-Maqdis, and then it was the test for the people of Book, to whom Bait al-Maqdis was dear, they had to accept the prophet who faced Kaabah. The directive of facing the Bait al-Maqdis is not available in Islamic literature. it just mentions that the prophet used to face both Kaabah and Bait al-Maqdis during his stay in Makkah. The second directive of the change of Kaabah is mentioned in the Quran as well as in Ahadith.