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