DraftWritten with AI help from the sources it cites, and not yet read by a human editor.
At a glance
- Era
- The Prophetic Era
- Region
- Arabia
- Identifiers
- ArchNetWikidatatei
In time
In space
Map: Natural Earth, public domain · places and route from the graph
Images

The Prophet's Mosque in Medina is the mosque the Prophet ﷺ and his companions built when they arrived in 622 CE. Its first walls were mud brick and its roof was palm leaves, and in it the Prophet taught and prayed with his companions. Muslims still visit it today.
The Prophet founded his mosque in Medina in 622 CE, right after the Hijra, on land that had been a drying yard for dates, bought from two orphans of Banu al-Najjar. The first building was simple: mud-brick walls, a roof of palm fronds on palm trunks, and three doors. The mosque held prayer, teaching and the community's affairs together, and one part — the Suffa — housed poor emigrants. The Prophet and the Rightly Guided caliphs enlarged it, then the Umayyad, Abbasid and Ottoman caliphs. Today it contains the Prophet ﷺ's grave in Aisha's chamber and the Rawda between his grave and his pulpit.
Storytellers (10–12) read the Explorers text, then cross to the Scholars text.
The Prophet's Mosque (al-Masjid al-Nabawi) in Medina was founded in 1 AH (622 CE) directly after the Hijra, on a date-drying yard bought from two orphans of Banu al-Najjar — tradition says the camel knelt there and the spot was chosen. The Prophet and his companions built a simple mosque of mud brick with a palm-frond roof on trunk pillars and three doors; its first qibla faced Jerusalem before being turned to the Ka'ba. The mosque was the community's whole centre — prayer, teaching, judgement and war planning — with the Suffa bench lodging the poorest companions. It was enlarged under the Prophet ﷺ and the Rightly Guided caliphs, rebuilt by al-Walid ibn Abd al-Malik around 88 AH to absorb the Mothers of the Believers' chambers, and expanded again under Abbasid, Mamluk, Ottoman and Saudi patronage. The Prophet was buried in Aisha's adjoining chamber in 11 AH, with Abu Bakr and Umar beside him, and the Rawda between his grave and pulpit remains the 'garden of Paradise' of the hadith.
Overview
The mosque that the Prophet founded in Medina after the Hijra. Wikidata dates its construction to 622 CE; this date rests on one source and needs an additional one. 2
The Encyclopaedia of Islam, whose articles on Medina and on the mosque this page also follows, calls this building the venerated model for later mosques and says the general type of the Muslim mosque developed from it. It also stresses that the first building was a courtyard serving the Prophet's household and the community, and that it was not conceived as a sacred edifice. 3 4 5
Its site
The Prophet's she-camel knelt at its site, and he said: "This is the dwelling, God willing." It was a drying ground for dates belonging to two orphan boys, Sahl and Suhayl, sons of Amr, in the care of As'ad ibn Zurara. 1
The Prophet refused to accept it as a gift until he had bought it. According to al-Waqidi, he bought it for ten dinars, which Abu Bakr paid. 1
In al-Bukhari's report, he told the Banu al-Najjar to name its price, and they said: "We ask for its price only from God." He ordered the graves of the polytheists to be dug up, the ruins levelled and the palms cut down, and the palms were set in rows facing the qibla. 6
Its construction
The Companions built it of mud brick on a foundation of stone about three cubits high. Its area is reported in different ways: seventy cubits by sixty, or a hundred by a hundred, making it square, or less than a hundred. 1
Its qibla was at first toward Jerusalem. When the qibla was changed, the back door was closed and a door opened opposite it. It has three doors, one known as the Gate of Atika, which is the Gate of Mercy, and the Gate of the House of Uthman. 1
It was not roofed at first. When the heat grew fierce it was shaded with palm trunks and fronds, and then plastered with mud. The report says that the Prophet said he wished for a shelter like the shelter of Moses. 1
The foundation in the Encyclopaedia of Islam
The article on Medina says that the Prophet and Abu Bakr reached Quba, in the south of the oasis, on 12 Rabi' al-Awwal, which it equates with 24 September 622. The Emigrants were given hospitality by the Muslims of Medina, but the Prophet accepted none of the many offers and, as the article puts it, ostensibly let his camel choose. It halted on land belonging to two orphans, and he bought the land and used it for his mosque and for his own house. 7
The article on the mosque gives two traditions. In the first, the Prophet rode into Medina with Abu Bakr behind him, surrounded by the Banu al-Najjar, and the camel stopped in the courtyard of Abu Ayyub. He then ordered a mosque to be built and bought the plot for ten dinars from two orphans, Sahl and Suhayl, who were wards of Mu'adh ibn 'Afra', after declining to take it as a gift. He lived with Abu Ayyub until the mosque and his houses were finished, and prayed in courtyards and other open spaces meanwhile. 8
In the second tradition he first prayed in the house of Abu Umama As'ad, who kept a private place of prayer where he led his neighbours. The Prophet later wished to buy the adjoining ground and bought it from the two orphans, who in this version were As'ad's wards. The two traditions thus differ on who the orphans' guardian was, and the article reports both without choosing. 8
The article adds that the site held graves, ruins and palm trees and was used to keep camels and smaller animals. It was cleared, the palms were cut and the walls were built. 8 3
Plan and materials
According to the article on the mosque, the building material was sun-dried brick. The plan was a courtyard enclosed by a brick wall on a stone foundation, with three entrances and stone gateposts. On the qibla side, the north wall, which was at first left open, the trunks of the felled palms were soon set up as columns and roofed with palm leaves and clay. On the east side two huts of similar materials were built for the Prophet's wives Sawda and A'isha, with entrances opening on to the court, and these later grew to nine small houses. 3
When the qibla was turned to the south, the shelter on the north wall remained. Under it, called the suffa or zulla, homeless Companions found refuge; they are known as the Ahl al-Suffa. The article cites Ibn Hisham for completion in the month of Safar of year 2, and mentions other reckonings. It judges the mosque to have been very simple, in effect a walled courtyard, and infers that a shelter was probably built on the south side too, since the Prophet preached leaning against a palm trunk. It says the size of these shelters cannot be known. 3
The architecture section of the same encyclopaedia, by a different author, gives a somewhat different picture. It describes a near-square enclosure of about 56 by 53 metres with a single entrance, a double row of palm-trunk columns thatched with palm leaves on the qibla side, a lean-to for destitute Companions to the south-east, and nine huts for the Prophet and his wives along the western side. It adds that about four-fifths of the interior was an empty courtyard, an openness that later became a standard feature of large mosques. The two sections disagree on the number of entrances and on which side the wives' huts stood, and the page records both. 4 5
More than a house of prayer
The article on the mosque argues that the earliest mosque in Medina had nothing of a sacred building about it. It gives examples from hadith and the biography of the Prophet. Envoys of Thaqif were received in the mosque, and three tents were pitched for them in the courtyard. Envoys of Tamim moved about it freely. After Uhud the Medinan chiefs spent the night there, the Aws tended their wounded in it, and a prisoner of war was tied to one of its pillars. Many poor people lived in the suffa, and a tent set up by the Banu Ghifar was where Sa'd ibn Mu'adh died of his wounds. On a festival some Abyssinians or Sudanese gave a display with shield and lance with the Prophet's approval. The article says that all this gives the impression of an army headquarters rather than a sacred edifice. 3
The same article states that the mosque was used from the first for common worship and quickly became the political and religious centre of the community. The Prophet addressed the believers there, with appeals for obedience to God and with regulations for social life. What distinguished it from a church or the Meccan temple, the article says, is that it had no specially dedicated ritual object. 3
The architecture section goes further and judges that the building was first and foremost a house for the Prophet and his family. In its reading it was also a community centre with welfare functions, served political, military and legal purposes, and could shelter the community at need. It says people prayed in it by degrees, but finds no evidence that it was the regular place of worship in the earliest years, noting that dogs and camels were allowed free access. It concludes that the Prophet had no intention of creating a new type of building. The page reports this as the view of that author, alongside the other section's statement that the courtyard served common worship from the first. 5
Hadith reports, as the article cites them, say that the Prophet spent ten days of Ramadan in retreat in the mosque of Medina and twenty in the year he died, when the mosque was full of palm-branch booths for those in retreat. 9 The article also mentions that the Prophet had two muezzins in Medina, Bilal ibn Rabah and Ibn Umm Maktum, who is described as blind. According to Abu Hurayra (may God be pleased with him) the mosque was swept by a black man, and, citing Ibn Jubayr, Bilal's descendants were muezzins of the mosque at the Rawda. 10
The article on the mosque also records that Tamim al-Dari is said to have been the first popular preacher admitted to the mosques; in Medina under Umar he addressed the Friday prayer and was allowed to speak twice a week in the mosque. 11
Enlargements and rebuilding
According to the article on the mosque, Umar extended the mosque by taking in the house of al-Abbas, yet still built with sun-dried brick, palm trunks and leaves and extended the booths. Uthman enlarged it again and introduced an important innovation by using hewn stone and plaster for walls and pillars and teak for the roof. He replaced the booths with pillared halls and plastered the walls. 12
The article says that the building work of al-Walid reached Fustat, Mecca and Medina, where no fundamental alterations were made but complete renovations were carried out. It says he rebuilt the Prophet's mosque, which was beautified by Christian architects with marble, mosaics, shells and gold. When al-Walid inspected the work in 93/712, an old man is reported to have remarked that people used to build in the manner of mosques and now built in the manner of churches. 13
The article connects such disputes with hadith. Umar, when he enlarged the mosque, is reported to have told the builders to shelter people from rain but not to colour it red or yellow. The article adds that the conservative view predominates in hadith, which treats lavish adornment of mosques as a sign of the end of the world, and that al-Walid's works were tolerated only from fear of discord. It presents this as the article's reading of the reports. 13
The history of the maksura, an enclosure for the ruler near the mihrab, in the Medina mosque is told by al-Samhudi and summarised in the article. The reports agree that it was introduced to protect the ruler from attack. Some say Uthman built one of sun-dried brick with windows. Another report says Marwan ibn al-Hakam, governor of Medina, was the first to build one of dressed stone with a window, in 44/664 after an attempt on his life. Mu'awiya is then said to have followed him, while others make Mu'awiya the first. 13
Fittings, staff and later notes
Ibn Jubayr is cited for fifteen palms in the Rawda, where trees still stood in the article's time, and for the courtyard being covered with small pebbles, a practice Ibn Battuta also reports. 13 In Ibn Battuta's time the servants of the mosque were eunuchs, especially Abyssinians, and their chief ranked like a great amir and was paid by the Egyptian-Syrian government. About 1900 the mosque had fifty muezzins and twenty-six assistants. 10
The article on Medina records a restoration under Sultan Abd al-Majid between 1848 and 1860. A breach was made in the inner city wall and a straight street was driven to near the south-west gate of the mosque, Bab al-Salam, so that columns and stone blocks could be brought in from Wadi al-Aqiq. 14 After the surrender of the city on 5 December 1925, Amir Muhammad ibn Abd al-Aziz entered on 6 December and prayed in the Prophet's mosque. 15
The same article prints two plans of the mosque, one before and one after the Saudi reconstruction. The earlier plan marks the Prophet's tomb, the tomb of Fatima, the pulpit, the Rawda, the Prophet's mihrab, Uthman's mihrab and the doors Bab Jibril, Bab al-Rahma and Bab al-Salam. The later plan marks the doors Bab Abd al-Aziz, Bab Uthman, Bab Abd al-Majid, Bab Umar, Bab Saud and Bab al-Siddiq. 16
Pilgrimage to Medina, the article says, grew out of the increasing veneration for the Prophet. In 140/757-8 al-Mansur visited the three sanctuaries on his pilgrimage, and the visit became a usual custom. A hadith it cites has the Prophet saying that a prayer in this mosque is worth a thousand elsewhere, even in the sanctuary at Mecca. 17
The same article notes that the mosque in Medina was not the only one founded in the Prophet's lifetime. According to tradition the first was the mosque at Quba, now the Quba Mosque, and the sources differ on whether the Prophet built it himself or found it built by the first Emigrants and Ansar. 3 18
Building and enlargement after the Hijra
The Prophet stayed with the Banu Amr ibn Awf for fourteen nights, and the mosque was then built in about seven months, of sun-dried brick and roofed with palm fronds. 19 20
Abu Bakr added nothing to it because he was occupied with the Ridda movement. Umar renewed it after the palm trunks had rotted, and Uthman then made large additions. 20 The book gives these events to show the mosque's teaching role, not to give a history of the building, and the detailed building history is found in the books named in their places.
The mosque as a school
Circles of Qur'anic teaching and prophetic training were held in its courtyard for men and women, and the women later asked for a day apart from the men. 20
Leading Companions famed for learning were there, such as Umar, Ali, Zayd ibn Thabit (may God be pleased with him) and Abd Allah ibn Mas'ud. The mosque gathered people of many origins, among them Abu Bakr, Umar, Uthman and Ali of Quraysh, Abu Dharr of Ghifar, Bilal the Abyssinian and Salman the Persian. 21 22
The book quotes Muhammad Abu Zahra that the claim that the jurists of Medina were people of hadith and those of Iraq people of analogy is mistaken at its core, because opinion went with hadith in Iraq and hadith with opinion in Medina. 22
Your choice is kept in this browser only.
Connections
- Site of
- Last days, washing, burial and estate of Umar· Abd al-Rahman ibn Awf's detachment to Dumat al-Jandal
- Related to
- The Prophet's chamber (al-Hujra): 'A'isha's room and the graves of the Prophet and his two companions· Belongings of the Prophet kept by the Companions after him· Nusuk
- Located in
- Medina
- Depicted in
- Image: the Prophet's mosque in Medina in 1908, from Mir'at al-Haramayn
- Subject of
- The Prophetic Biography for Reformers, episode 12: The journey to al-Ta'if, the Night Journey and the Ascension· The Prophetic Biography for Reformers, episode 16: Brotherhood, the Building of the Mosque and the Medinan Society· The Prophetic Biography for Reformers, episode 23: The Battle of the Trench· Sharh Sahih al-Bukhari (Explanation of Sahih al-Bukhari) programme
- Mentioned in
- Muslim 1390 — Between my house and my minbar is a garden of Paradise· Muwatta 13· Muwatta 90· Muwatta 166· Muwatta 188· Muwatta 222· Muwatta 240· Muwatta 268· Muwatta 274· Muwatta 291· Muwatta 299· Muwatta 301· Muwatta 347· Muwatta 348· Muwatta 458· Muwatta 477· Muwatta 483· Muwatta 484· Muwatta 527· Muwatta 528· Muwatta 529· Muwatta 532· Muwatta 551· Muwatta 614· Muwatta 615· Muwatta 620
- Exemplifies
- Mosque
People and things also explored
Muwatta, Book of Prayer· Muhammad· Umar ibn al-Khattab· Salah (the prescribed prayer)· Aisha bint Abi Bakr· Medina· Muhammad ibn Shihab al-Zuhri· Abdullah ibn Umar ibn al-Khattab
Sources
- Wafa al-Wafa bi-akhbar dar al-Mustafa — al-Samhudi (older print) , p. 334-349
- Wikidata
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 673
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 705
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 706
- Sahih al-Bukhari , 1868
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 5.3 p. 63
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 672
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 685
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 704
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 684
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 687
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 688
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 5.3 p. 70
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 5.3 p. 66
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 5.3 p. 68
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 686
- Encyclopaedia of Islam, 2nd edition (Leiden: Brill, 1954–2008), 13 volumes , vol. 6 p. 674
- The Mosque in Islam: Worship and Culture (Part One) — Muhammad Rajab al-Bayoumi , p. 16
- The Mosque in Islam: Worship and Culture (Part One) — Muhammad Rajab al-Bayoumi , p. 17
- The Mosque in Islam: Worship and Culture (Part One) — Muhammad Rajab al-Bayoumi , p. 19
- The Mosque in Islam: Worship and Culture (Part One) — Muhammad Rajab al-Bayoumi , p. 20
- Muhammad Qabbani, The Umayyad State from Birth to Fall (Damascus: Dar Wahy al-Qalam, 2006)
- Thesaurus d'Epigraphie Islamique (University of Liege / Fondation Max van Berchem)
- Archnet (Aga Khan Trust for Culture / MIT Aga Khan Documentation Center)
Cite this page
islam.museum contributors. “Prophet's Mosque”. islam.museum, https://islam.museum/en/building/prophets-mosque/. CC BY-SA 4.0. Last updated 2026-11-22.
Improve this page on GitHub · Report an error · Help complete it · JSON