Muslims believe that Muhammad was transported from the Great Mosque of Mecca to al-Aqsa during his Night Journey (Isra and Mi'raj). Moreover, Muslims prayed towards al-Aqsas for a period of 16 or 17 months after migration to Medina in 624.