According to Islamic tradition, what inspired Muhammad to change the direction of Muslim daily prayer to face Mecca
O Islam stopped recognizing Jerusalem as a holy site. Muhammad had finished converting the people of Mecca to Islam.
O Muhammad had received a message from Allah through Gabriel.
O Muslims had completed the Hijrah and felt disconnected from the Kaaba.