Al-Aqsa Mosque (, ] (), the Farthest Mosque), located in the Old City of Jerusalem, is the third holiest site in Islam. The mosque was built on top of the Temple Mount, known as the Al Aqsa Compound or Haram esh-Sharif in Islam. Muslims believe that Muhammad was transported from the Great Mosque of Mecca to al-Aqsa during the Night Journey. Islamic tradition holds that Muhammad led prayers towards this site until the 17th month after his migration from Mecca to Medina, when Allah directed him to turn towards the Kaaba in Mecca.