Masjid al-Aqsa holds a unique place in Islam. It is one of the three mosques specifically mentioned by the Prophet Muhammad (PBUH) in connection with undertaking a journey for worship. It was the destination of his Night Journey from Makkah, the first qiblah of the Muslim community, and a place associated with generations of prophets.
Allah says:
The history of Masjid al-Aqsa therefore reaches far beyond the construction of a particular mosque building. It is part of the sacred history of Jerusalem and the legacy of the Prophets.
The name is used in two ways. In its wider sense, al-Masjid al-Aqsa refers to the entire sanctuary, also known as al-Haram al-Sharif, an enclosure of roughly 144 dunams (about 14 hectares). In everyday usage, it also refers to the silver-domed, southern congregational mosque, often called the Qibli Mosque. The Golden Dome of the Rock is a separate building within the same compound. This article uses "Masjid al-Aqsa" for the sanctuary and "the Qibli Mosque" for the congregational building where the distinction matters.
The exact identity of the first person who established Masjid al-Aqsa is not explicitly stated in the Qur'an or in an authentic hadith.
Abu Dharr (RA) asked the Prophet Muhammad (PBUH) which mosque was established first on earth. The Prophet (PBUH) replied that it was al-Masjid al-Haram. When Abu Dharr (RA) asked which came next, he replied, "al-Masjid al-Aqsa." When asked about the interval between them, the Prophet (PBUH) said:
This hadith establishes the great antiquity of Masjid al-Aqsa but does not identify its original builder.
Some later scholars connected its earliest establishment with Adam (AS), but this should not be presented as an explicit teaching of the Qur'an or an authentic hadith. What can be stated with confidence is that Masjid al-Aqsa was established as a place of worship very early in human history.
Jerusalem and the surrounding blessed land were closely connected with the history of Ibrahim (AS), Ishaq (AS), Yaqub (AS), Dawud (AS), Sulayman (AS), Zakariyya (AS), Yahya (AS), and Isa (AS).
The Qur'an describes the land to which Ibrahim (AS) and Lut (AS) were delivered as blessed:
The Qur'an also describes Allah's blessing upon the land associated with Sulayman (AS):
Jerusalem consequently became part of a long Prophetic tradition in which worship of Allah was preserved through successive generations.
Although the first establishment of Masjid al-Aqsa cannot be definitively attributed to a particular Prophet from the Qur'an and sahih hadith, Sulayman (AS) is explicitly connected with the construction of Bayt al-Maqdis.
Abdullah ibn Amr (RA) narrated that when Sulayman ibn Dawud (AS) completed building Bayt al-Maqdis, he asked Allah for three things. Among them was that whoever came to the mosque intending only to pray there would leave free of sin.
The narration is recorded in Sunan an-Nasa'i 693.
This provides an important distinction: Sulayman (AS) is directly associated with building or completing Bayt al-Maqdis, but the authentic evidence does not establish him as its first-ever founder.
The greatest event connecting Masjid al-Aqsa with the mission of Prophet Muhammad (PBUH) was Isra and Mi'raj.
Allah says:
The Qur'an establishes the Night Journey from Makkah to al-Masjid al-Aqsa. The authentic hadith provides further details.
Anas ibn Malik (RA) narrated that the Prophet (PBUH) was brought by al-Buraq and taken to Bayt al-Maqdis. He entered the mosque and prayed two rak'ahs before his ascent through the heavens. — Sahih Muslim 162a
Other authentic narrations describe the Prophets being gathered for him and his leading them in prayer. Masjid al-Aqsa therefore became permanently connected to one of the greatest miracles in the life of Prophet Muhammad (PBUH).
Masjid al-Aqsa was also the first qiblah toward which the Muslims prayed.
After the migration to Madinah, the Muslim community continued facing Bayt al-Maqdis before Allah commanded the Prophet (PBUH) to turn toward al-Masjid al-Haram.
Allah says:
The change of qiblah did not diminish the religious importance of Masjid al-Aqsa. Its history remained permanently connected with the earliest Muslim community and the revelation of Islamic law.
Masjid al-Aqsa is one of the three mosques specifically mentioned by the Prophet Muhammad (PBUH) in connection with undertaking a journey for worship.
Abu Hurairah (RA) narrated that the Prophet (PBUH) said:
The hadith places Masjid al-Aqsa alongside al-Masjid al-Haram and the Prophet's Mosque in Madinah as a mosque possessing a special distinction in Islamic worship.
After the Prophet Muhammad (PBUH), Jerusalem remained an important city for the Muslim community.
In 638 CE, during the caliphate of Umar ibn al-Khattab (RA), Jerusalem came under Muslim rule. Islamic historical sources describe Umar (RA) visiting the city and establishing Muslim prayer in the area of the sanctuary.
The early Muslim period was followed by major architectural development under the Umayyads.
The Dome of the Rock, commissioned by Caliph Abd al-Malik and completed in 691 CE, became one of Jerusalem's most important monuments. The present congregational al-Aqsa Mosque also developed substantially during the Umayyad period, particularly under al-Walid ibn Abd al-Malik in the early eighth century.
It is important to distinguish these structures. The Dome of the Rock is not the same building as Al-Aqsa Mosque. Both stand within the larger sacred sanctuary commonly known as al-Haram al-Sharif or the al-Aqsa compound.
In 1099 CE, Crusader forces captured Jerusalem during the First Crusade.
The sacred buildings in the Haram were repurposed during the Crusader period. Al-Aqsa was used for purposes other than Muslim congregational worship, while the Dome of the Rock was also given a different function.
For Muslims, the loss of Jerusalem represented the loss of one of Islam's most sacred places.
The Muslim response developed over several decades. Nur al-Din Zangi and other Muslim leaders worked toward strengthening Muslim power in the region, eventually followed by Salahuddin al-Ayyubi.
On 2 October 1187 CE, after his victory over the Crusader forces, Salahuddin al-Ayyubi entered Jerusalem.
The sanctuary was restored to Muslim use. Historical accounts record that the Haram was cleansed and that Muslim prayer was re-established at al-Aqsa.
Salahuddin's restoration of Jerusalem became one of the defining episodes in the later history of Masjid al-Aqsa.
After the Ayyubid period, Jerusalem came under Mamluk rule. The Mamluks invested heavily in the city, constructing schools, religious buildings, fountains, gates, and other institutions around the Haram.
In 1517, the Ottoman Empire took control of Jerusalem. Ottoman rulers maintained and renovated many of the city's Islamic monuments and continued the city's place within the wider Muslim world.
The Ottoman period lasted for approximately four centuries.
The First World War brought another major change. Ottoman rule ended, and Jerusalem came under British control.
In 1948, the war resulted in the division of Jerusalem. East Jerusalem, including the Old City and Masjid al-Aqsa, came under Jordanian control.
In 1967, during the Six-Day War, Israel captured East Jerusalem. The status of East Jerusalem remains internationally disputed, and the United Nations continues to regard it as occupied territory.
The administration of the Islamic holy site has remained associated with the Jerusalem Islamic Waqf under Jordanian custodianship, while Israeli authorities exercise security and access functions. These arrangements form part of the continuing status quo surrounding the holy site.
Masjid al-Aqsa is important to Muslims for several reasons that come directly from revelation and the life of the Prophet (PBUH):
For these reasons, Muslims around the world hold Masjid al-Aqsa in deep reverence. Their love for it is rooted in faith, not in politics or nationality.
The history of Masjid al-Aqsa cannot be reduced to one building or one period. Its story reaches from the earliest houses of worship through the Prophets of Allah, the Night Journey of Prophet Muhammad (PBUH), the first qiblah, the Rashidun period, the Umayyad architectural age, the Crusader occupation, Salahuddin's restoration, and the complex history of Jerusalem in the modern era.
Its enduring significance comes first from revelation. Allah called its surroundings blessed, and the Prophet Muhammad (PBUH) connected it directly with the history of worship on earth and with the miraculous journey of Isra and Mi'raj.
For Muslims, Masjid al-Aqsa therefore remains not merely an ancient monument but a living part of Islamic sacred history.