The Aqsa Mosque, also known as the Qibli Mosque or Qibli Chapel, is the main congregational mosque or prayer hall in the Al-Aqsa mosque compound in the Old City of Jerusalem. In some sources the building is also named al-Masjid al-Aqṣā, but this name primarily applies to the whole compound in which the building sits, which is itself also known as "Al-Aqsa Mosque". The wider compound is known as Al-Aqsa or Al-Aqsa mosque compound, also known as al-Ḥaram al-Sharīf.
According to Islamic tradition, a small prayer hall (musalla), what would later become the Al-Aqsa Mosque, was built by Umar, the second caliph of the Rashidun Caliphate. In the reign of the caliph Mu'awiyah I of the Umayyad Caliphate (founded in AD 661), a quadrangular mosque for a capacity of 3,000 worshipers is recorded somewhere on the Haram ash-Sharif.