The building of the Prophet's Mosque

بناء المسجد النبوي

c. 27 September 622 CE · Rabi' I 1 AH

Medina

Soon after arriving in Medina, the Prophet ﷺ and his companions built a mosque and living quarters on a plot of land, a model for later mosques.

Depth

At a glance

Era
The Prophetic Era
Region
Arabia
Review
Draft Completeness 2/5 · Help complete it

In time

610620630640 c.
Pre-Islamic Arabia · The Prophetic Era · The Rashidun Caliphate

In space

Medina

Map: Natural Earth, public domain · places and route from the graph

Mosques

Reading levelRead it in the Kids' Wing

The Prophet and his companions built the Prophet ﷺ's Mosque in Medina with mud bricks and palm branches, as a house of prayer and care.

Upon arriving in Medina, the Prophet ﷺ's camel knelt on land belonging to two orphan youths of the Banu al-Najjar clan, which was purchased to establish the Prophet's Mosque. The Emigrants and Helpers joined with the Prophet in carrying bricks and palm trunks to construct the mosque, which became the beating heart of worship, education, and community support.

Storytellers (10–12) read the Explorers text, then cross to the Scholars text.

The foundation and construction of the Prophet ﷺ's Mosque in the first year of the Hijra (622 CE) following the Prophet's arrival in Medina. Built upon land purchased from two orphan youths of Banu al-Najjar where his camel halted, the Prophet labored alongside the Emigrants and Helpers using clay bricks and palm timber, with the initial qibla facing Jerusalem before the redirection to the Kaaba. Serving as the civic, educational, and devotional nexus of the emergent Muslim community, it accommodated worship, public administration, foreign delegations, and the shelter of the suffa community, establishing the enduring archetype for Islamic religious architecture.

Summary

The Prophet built the Prophet's Mosque on the spot where his camel had knelt, after buying the land from two orphan boys, and he took part in its construction himself. 1 2 The site contained polytheist graves, ruins and palm trees. He ordered the graves dug up, the ruins levelled and the palms cut down, and the qibla was set toward Jerusalem. 1

Construction

Its door-posts were of stone, its walls of mudbrick and clay, and its roof of palm fronds, with palm trunks as its pillars. Its floor was laid with sand and pebbles, and it had three doors. He built mudbrick rooms beside it for his wives, and moved into them when they were complete. 1 2 He carried bricks and stones together with the Companions, reciting verses of supplication for the Ansar and the Muhajirun, and they grew more energetic for it. 1

Functions

The mosque was not for prayer alone. It was a centre of learning, a forum in which tribes that had been at feud in the time of ignorance came together, a base for administering affairs, and a council chamber for assemblies. It also gave shelter to the poor Muhajirun who had no homes. 2 At the beginning of the hijra the call to prayer was instituted, and the book refers to the dream of Abdullah ibn Zayd concerning it. 2 3

Notes for researchers

  • The book states that the Prophet's arrival in Medina was on Friday 12 Rabi' al-Awwal of the first year of the hijra, corresponding to 27 September 622 CE. This is the author's arrangement. 1
For young visitors

The Prophet built the first mosque in Medina with his own hands and the hands of his Companions, from palm trunks and mudbrick, so that Muslims could gather there for prayer and learning. It had a place where the poor could sleep.

Your choice is kept in this browser only.

Connections

Explore the connections

Occurred at
Medina
Had participant
Muhammad· Abu Ayyub al-Ansari· As'ad ibn Zurara
Part of
The Prophetic Era
Caused by
The Hijra

People and things also explored

The Hijra· The journey from the cave of Thawr to Medina and the entry into the city· The Pledges of Aqaba· The brotherhood of the Muhajirun and Ansar· The change of the qibla· The Constitution of Medina· The prescription of the Ramadan fast· The marriage of Fatima and Ali

Sources

  1. al-Raheeq al-Makhtum — Safi al-Rahman al-Mubarakpuri , p.184
  2. al-Raheeq al-Makhtum — Safi al-Rahman al-Mubarakpuri , p.185
  3. al-Raheeq al-Makhtum — Safi al-Rahman al-Mubarakpuri , p.185-186
  • Sahih al-Bukhari
  • Zad al-Ma'ad — Ibn Qayyim al-Jawziyya
  • Ibn Ishaq / Guillaume, The Life of Muhammad (1955)
  • Watt, Muhammad at Medina (1956)
  • Lings, Muhammad (1983)
Cite this page

islam.museum contributors. “The building of the Prophet's Mosque”. islam.museum, https://islam.museum/en/event/prophets-mosque-built/. CC BY-SA 4.0. Last updated 2026-10-25.

Improve this page on GitHub · Report an error · JSON

Wing

Time

Eras, timelines, this day in history, any year in the Islamic world.
Related

The Hijra

The migration of the Prophet Muhammad and his followers from Mecca to Medina in 622 CE, the event from which the Islamic calendar is counted.