The question of which house of worship was established first on Earth holds profound spiritual, historical, and architectural significance for the global Muslim community. Within Islamic tradition, a mosque—linguistically derived from the Arabic root sajada, meaning to prostrate or submit—serves as the primary sanctuary for communal and private devotion. While alternative terminologies such as musala, langgar, or surau are frequently employed across different cultures to designate places of prayer, the foundational structures of Islam carry a unique theological lineage. At the center of this sacred geography stand Masjid Al-Haram in Makkah and Masjid Al-Aqsha in Jerusalem, two institutions whose origins have long been the subject of scholarly analysis, scriptural examination, and historical contextualization.
Main Facts and Prophetic Tradition
The definitive textual reference regarding the chronological precedence of these two sacred sites is preserved within canonical Hadith literature. According to an authentic narration recorded by both Imam Al-Bukhari (Hadith No. 3186) and Imam Muslim (Hadith No. 520), the esteemed companion Abu Dzar Al-Ghifari radhiallahu ‘anhu inquired of the Prophet Muhammad sallallahu ‘alaihi wasallam regarding the very first mosque established on the surface of the Earth.
The Prophet Muhammad sallallahu ‘alaihi wasallam responded, "Masjid Al-Haram." Abu Dzar then asked, "And then which?" The Prophet replied, "Masjid Al-Aqsha." Upon further inquiry regarding the exact duration of time that separated the construction of the two sanctuaries, the Prophet stated, "Forty years."
This foundational narration establishes an explicit temporal relationship between the two most revered focal points of prophetic history. However, the interpretation of the word "built" or "established" within this context has historically required careful scholarly reconciliation, particularly when weighed against subsequent architectural renovations and prophetic rebuildings documented in scriptural history.
Chronology and Historical Context
To fully understand the 40-year gap referenced in the prophetic tradition, Islamic historians and exegetes have long examined the timeline of construction, renovation, and foundation-laying associated with both sites.
Masjid Al-Haram, anchored by the Sacred Kaaba, is recognized in Islamic tradition as the earliest sanctuary established for humanity. Even prior to the advent of Islam during the pre-Islamic era known as the Jahiliyah, the sanctity of Makkah and the surrounding environs of the Kaaba was universally acknowledged by Arabian tribes. The site predates formal recorded historical epochs as a designated place of monotheistic devotion, originating with the earliest human presence on Earth.
Conversely, mainstream historical and scriptural consensus holds that the physical structures visible in later millennia were raised by specific prophets. Islamic tradition dictates that Prophet Ibrahim (Abraham) and his son Prophet Ismail raised the physical foundations and walls of the Kaaba after centuries of weathering or earlier destruction. Similarly, the construction—or major structural reconstruction—of Masjid Al-Aqsha (Baitul Maqdis) is traditionally attributed to Prophet Sulaiman (Solomon).
This historical reality introduced an apparent chronological discrepancy for classical scholars, given that the historical timeline separating Prophet Ibrahim and Prophet Sulaiman spans more than a millennium—far exceeding the forty years mentioned in the prophetic tradition.
Scholarly Analysis and Resolution of the Timeline
Addressing this apparent complexity, prominent classical scholars provided foundational clarifications that continue to guide modern Islamic scholarship. The renowned Hanbali jurist and historian Imam Ibnul Jauzi rahimahullah, whose insights were famously compiled by Al-Hafizh Ibnu Hajar al-Asqalani rahimahullah in the monumental commentary Fath al-Bari (Volume 6, page 408), analyzed the theological implications of the narration.
Imam Ibnul Jauzi noted the potential point of confusion: if the prophetic narration implied that the complete, permanent structures of both mosques were erected from scratch by the exact same prophetic figures within a 40-year span, it would contradict established historical timelines placing Ibrahim and Sulaiman centuries apart.
Modern contemporary scholars, such as Ustaz Farid Nu’man Hasan, a prominent Indonesian dai and graduate in Arabic Literature from the University of Indonesia, emphasize that the term "built" (bina) in the context of this Hadith refers specifically to the establishment of the original foundations (qawa’id), rather than the continuous physical masonry seen in later epochs.
According to this scholarly consensus, the original spiritual and physical boundaries or layout markers of both sites were established by divine guidance, separated by a span of forty years. Later prophets, including Ibrahim and Sulaiman, did not necessarily invent the locations; rather, they excavated, rediscovered, and reconstructed the sacred edifices upon their original, pre-existing divine foundations. This perspective harmonizes the authentic Hadith literature with the broader chronological expanse of prophetic history.
Supporting Data and Comparative Architecture
Both Masjid Al-Haram and Masjid Al-Aqsha represent masterworks of ancient architecture and enduring religious symbolism. Masjid Al-Haram encompasses the Kaaba, the Qibla (direction of prayer) for Muslims worldwide, and covers vast expanses designed to accommodate millions of pilgrims during the annual Hajj and Umrah seasons. Its expansion projects over the centuries—spanning the Umayyad, Abbasid, Ottoman, and modern Saudi eras—reflect its paramount status in Islamic civilization.
Masjid Al-Aqsha, located in the Old City of Jerusalem, represents the entirety of the noble sanctuary (Al-Haram al-Sharif), which includes the Qibli Mosque, the Dome of the Rock, and numerous historical structures, cisterns, and minarets. As the third holiest site in Islam and the destination of the Isra and Mi’raj (Night Journey and Ascension) of the Prophet Muhammad, its architectural evolution mirrors the dynastic shifts of the Near East, retaining elements from the Umayyad, Abbasid, Fatimid, Mamluk, and Ottoman periods.
Implications and Broader Significance
The theological and historical understanding of the origins of Masjid Al-Haram and Masjid Al-Aqsha holds profound implications for contemporary Islamic identity, jurisprudence, and heritage preservation.
- Spiritual Continuity: The linkage between Makkah and Jerusalem reinforces the concept of a singular, continuous monotheistic message spanning across generations of prophets. It ties the Arabian Peninsula’s heritage directly to the Levant, establishing a shared sacred geography.
- Methodological Rigor in Scholarship: The resolution of the 40-year timeline by classical authorities demonstrates the sophisticated methodology applied by Islamic scholars in reconciling Hadith texts with historical chronology, ensuring that faith and empirical history remain mutually supportive.
- Heritage and Stewardship: Recognizing that both sites were built upon foundational legacies entrusted to successive prophets emphasizes the ongoing responsibility of the global Muslim community to protect, maintain, and honor these sacred spaces amidst modern geopolitical and urban challenges.
Through rigorous textual analysis and historical contextualization, the narrative surrounding the establishment of Earth’s first mosques continues to serve as an anchor for Islamic scholarship, offering clarity on the origins of humanity’s most enduring houses of worship.
Socio Today


