LoginSign up
TodayArticlesBattlesBiographiesSeerah in 3D

MADINAH · 1 AH

The Prophet's Mosque as First Built, 1 AH (622 CE)

This page rebuilds the mosque of the Prophet ﷺ in Madinah (Medina) as it was first built after the Hijrah, in 1 AH (622 CE), and shows the change of qibla in 2 AH, which moved the qibla wall and the shade from the north side to the south.

The Prophet's Mosque in Madinah as first built, with mud-brick walls, palm-trunk columns and a palm-frond shade: a 3D reconstruction of 1 AH (622 CE)

The model shows an enclosure of mud brick about 70 by 60 cubits, a shade of palm trunks and palm fronds, and two small rooms on its east side. You can walk through it at eye height or look at it from above. Every place below is described as the sources describe it, with a note on where the model places it, what it assumes and where each claim comes from, and each one opens in the 3D model.

The Prophet's Mosque as first built (al-Masjid al-Nabawi)

When the Prophet ﷺ reached Madinah he alighted among Banu al-Najjar, in the courtyard of Abu Ayyub ﵁, and ordered a mosque to be built on a plot nearby. Anas ibn Malik ﵁ describes the plot in Sahih al-Bukhari 428: a walled garden with the graves of pagans, ruins and palm trees. The graves were exhumed, the ruins levelled and the palms cut, the trunks were lined up on the qibla side and the door-jambs were set in stone, while the Companions ﵃ carried the stones and recited verses together with the Prophet ﷺ.

The ground was a date-drying floor that belonged to two orphan boys, Sahl and Suhayl ﵄, in the care of As'ad ibn Zurarah ﵁ (Sahih al-Bukhari 3906). Ibn Sa'd ﵀ adds that the gharqad scrub on it was cut and its standing water drained away, and that As'ad ﵁ had already used an unroofed walled space there for prayer (al-Tabaqat al-Kubra 1:239).

Ibn 'Umar ﵄ gives the materials in Sahih al-Bukhari 446: in the time of the Messenger of Allah ﷺ the mosque was built of mud brick, its roof was palm fronds and its columns were palm trunks. Its size is reported in several ways, which al-Samhudi ﵀ gathered in Wafa' al-Wafa. The report tied to the first build gives about 70 by 60 cubits, some 35 by 30 m; the figure of 100 by 100 cubits, which Ibn Sa'd ﵀ also gives, is taken by al-Samhudi ﵀ as the size after the enlargement that followed Khaybar in 7 AH.

The Prophet's Mosque, first build (1 AH)

The Prophet's Mosque in Madinah as first built: mud-brick walls on a low stone course, palm-trunk columns and a palm-frond shade, 3D reconstruction of 1 AH

Soon after the Hijrah the Prophet ﷺ built the mosque on a walled plot of Banu al-Najjar: its pagan graves were exhumed, the ruins levelled and the palms cut and lined up on the qibla side, and the door-jambs were made of stone (Sahih al-Bukhari 428). The first build measured about 70 by 60 cubits (about 35 by 30 m). Other reports give 100 by 100 cubits, which al-Samhudi ﵀ takes as the size after the enlargement of 7 AH, and one gives a width of 63 cubits. The walls were mud brick on a stone footing, about a man's height with a raised hand. The reports say the stone went about three cubits deep or high; the model reads it as a foundation with a low course above ground.

Location
The centre of the enclosure is placed about 15 m north and 20 m west of the traditional site of the room of 'A'ishah ﵂, not at the centre of the modern mosque. The ground here is the flattened core of the Madinah terrain, where the modern haram was taken out of the elevation data.
Reconstruction
Modelled as 35.6 by 30.5 m outside (70 by 60 cubits of 0.509 m, the forearm cubit of al-Samhudi ﵀) on a true north to south axis, with walls 2.3 m high and one brick (0.55 m) thick on a stone course 0.5 m high. The axis, the columns, the roof build-up and the room sizes are reconstructions. No minaret, dome, mihrab niche, minbar or stone column is shown: all of them are later.

The open court

The middle of the mosque was an open court of levelled earth. Some reports say the court was open at first and the shade was added when the Companions ﵃ complained of the heat.

Location
The middle of the enclosure.
Reconstruction
Bare, levelled earth between the shades. A weak report quoted by al-Samhudi ﵀ says the floor was sprinkled with water until 'Umar ﵁ spread pebbles over it, and an undated report puts the first pebbles in the lifetime of the Prophet ﷺ (Sunan Abi Dawud 458). Neither can be dated to 1 or 2 AH, so none are shown.
Sources

The prayer shade and the first qibla, toward Bayt al-Maqdis

Most of the mosque lay under the open sky. Along the qibla side stood a shade of palm trunks carrying cross-pieces, palm fronds, palm-leaf mats and idhkhir grass, with little or no mud on top, so that the mosque filled with mud when it rained, as al-Samhudi ﵀ reports from Ja'far ibn Muhammad ﵀ and Ibn Shihab ﵀ (Wafa' al-Wafa 1:258 to 1:261). When it was suggested that the roof be plastered, the Prophet ﷺ declined, in the report of Ja'far ibn Muhammad ﵀, and called it an 'arish like the 'arish of Musa ﵇; al-Hasan ﵀ explained that a man who raised his hand could touch its roof (Wafa' al-Wafa 1:258 to 1:261).

For sixteen or seventeen months after the Hijrah the prayer faced north, toward Bayt al-Maqdis in Jerusalem (Sahih al-Bukhari 40), so the qibla wall and the shade were on the north side. The model shows that direction with a faint arrow in the floor. It does not mark a spot where the Prophet ﷺ stood in prayer: the reports that fix such a spot rest on markers measured centuries later, after the mosque had been rebuilt and enlarged.

The prayer shade

The prayer shade of palm trunks and palm fronds inside the first mosque in Madinah, 3D reconstruction

Palm trunks carried a roof of palm fronds, an 'arish low enough to touch with a raised hand. The prayer was led under this shade: along the north wall until the change of qibla, then under a new shade along the south wall.

Location
Along the qibla wall of the moment: the north side before the change, the south side after it.
Reconstruction
Two rows of six palm trunks in seven bays of about 4.2 m, carrying split-trunk beams, rafters of palm stems, fronds and palm-leaf mats, with the underside at 2.3 m, level with the wall top. Six to a row follows a weak report (Ibn Zabala, quoted by al-Samhudi ﵀); the depth of two bays is a reconstruction.

The qibla wall

The north qibla wall of the first mosque in Madinah, facing Bayt al-Maqdis before the change of qibla, 3D reconstruction

For sixteen or seventeen months the prayer faced north, toward Bayt al-Maqdis (Sahih al-Bukhari 40). From Rajab or Sha'ban 2 AH the prayer faced the Ka'bah. The first full prayer toward the Ka'bah in this mosque was 'Asr. Use the qibla setting to see the change.

Location
The north wall before the change, the south wall after it.
Reconstruction
A plain wall, with no niche and no marker of a place of prayer. The walls keep one true north to south axis in both states; a faint arrow in the floor gives the direction, 333° toward Bayt al-Maqdis and 176° toward the Ka'bah, computed as great-circle bearings from the mosque.

Three doors, and a fourth after the change

Ibn Sa'd ﵀ records three doors in the first build: one in the rear wall, one on the west side that was later called Bab 'Atikah or Bab al-Rahmah, and the door on the east side by which the Prophet ﷺ entered, later known as Bab Jibril (al-Tabaqat al-Kubra 1:240; Wafa' al-Wafa 2:212 to 2:214). When the qibla turned, the rear door in the south wall was walled up and a new door was opened opposite it in the north wall, while the east and west doors stayed as they were (Wafa' al-Wafa 1:259).

The door of the Prophet ﷺ (later Bab Jibril)

The door in the east wall by which the Messenger of Allah ﷺ entered, beside the rooms of his household. Ibn Sa'd ﵀ counts it among the three doors of the first build; it was later called Bab Al 'Uthman and later still Bab Jibril, the name by which al-Samhudi ﵀ knew it.

Location
East wall, north of the two rooms; the position along the wall is an assumption.
Reconstruction
An open doorway 2 m wide under a palm-trunk lintel, with stone jambs and no door leaf, about 5 m south of the inside of the north wall. Its place along the wall is an assumption: the reports put it north of the two rooms and opposite the west door.

The west door (later called Bab al-Rahmah)

The door in the west wall, opposite the east door, later called Bab 'Atikah or Bab al-Rahmah. The east and west doors were not changed when the qibla turned.

Location
West wall, opposite the east door; the position along the wall is an assumption.
Reconstruction
A doorway like the east one and directly opposite it; its place along the wall is an assumption.

The rear door (walled up after the change)

The door in the rear wall, used while the prayer faced north. When the qibla turned south it was closed, in a report from Zayd ibn Thabit ﵁ that al-Samhudi ﵀ quotes (Wafa' al-Wafa 1:259).

Location
South wall, on the middle line (an assumption).
Reconstruction
On the middle line of the south wall, an assumption: the reports say only that it was in the rear. After the change the model fills it with mud brick between its stone jambs.

The north door

Opened opposite the closed south door when the qibla changed, in Rajab or Sha'ban 2 AH. Before the change the north wall was the qibla wall and had no door.

Location
North wall, on the middle line (an assumption).
Reconstruction
Opposite the south door, on the middle line; shown only after the change of qibla.

The rooms of Sawdah ﵂ and 'A'ishah ﵂

Together with the mosque, rooms of mud brick were built for the household of the Prophet ﷺ against its east side, roofed with palm trunks and fronds, with their doors opening into the mosque (al-Tabaqat al-Kubra 1:240). In the first two years there were two of them: the room of 'A'ishah ﵂ to the south and the room of Sawdah ﵂ beside it, toward the east door. The rooms of the other wives were added from 3 AH on and are not part of this scene.

Their size comes from people who saw them later. Dawud ibn Qays ﵀ described the room of 'A'ishah ﵂ before it was pulled down in 88 AH, and al-Hasan al-Basri ﵀ remembered touching the roofs of the rooms with his hand in the caliphate of 'Uthman ﵁ (al-Adab al-Mufrad 450 and 451). The model uses those descriptions for the rooms as they stood in 1 and 2 AH, and its place note says so.

The rooms of Sawdah ﵂ and 'A'ishah ﵂

The rooms of Sawdah ﵂ and 'A'ishah ﵂ against the east wall of the first mosque in Madinah, 3D reconstruction

Two small rooms of mud brick, roofed with palm trunks and fronds, stood against the east wall, their doors opening into the mosque. The room of 'A'ishah ﵂ lay to the south and the room of Sawdah ﵂ beside it, toward the east door.

Location
Against the outside of the east wall, south of the east door, as Ibn Sa'd ﵀ places them; the room of 'A'ishah ﵂ stands on its traditional site.
Reconstruction
Each room is modelled 5.1 by 3.3 m inside and 2.3 m high, with a door 1.1 m wide into the mosque, from descriptions of the rooms seen later, in the caliphate of 'Uthman ﵁ and before they were pulled down in 88 AH (al-Adab al-Mufrad 450 and 451). The room of Sawdah ﵂ is given the same size, an assumption. The rooms of the other wives, built from 3 AH on, are out of period.

The change of qibla in 2 AH, and the Suffa

In Rajab, or in other reports Sha'ban, of 2 AH the qibla was turned from Bayt al-Maqdis to the Ka'bah in Makkah, and the first full prayer toward the Ka'bah in this mosque was 'Asr (Sahih al-Bukhari 40; al-Tabaqat al-Kubra 1:242). The building followed the prayer. A new shade was built along the south wall, which was now the qibla wall; the rear door in that wall was closed, and a door was opened in the north wall (Wafa' al-Wafa 1:259; Creswell, Early Muslim Architecture, 13).

The old northern shade was not taken down. It stood from then on at the back of the mosque and sheltered Muhajirun who had no home, the people of the Suffa, as al-Dhahabi ﵀ and Qadi 'Iyad ﵀ describe it in the reports gathered by al-Samhudi ﵀ (Wafa' al-Wafa 1:280 and 2:48). Use the qibla setting in the model to see the building before and after the change.

The Suffa

The old northern shade of the first mosque in Madinah, the Suffa after the change of qibla, 3D reconstruction

After the change of qibla the old northern shade stayed at the back of the mosque and sheltered Muhajirun who had no home. Qadi 'Iyad ﵀ describes it as a shade at the rear of the mosque where the poor took shelter, and al-Dhahabi ﵀ says that the wall of the first qibla remained the place of the people of the Suffa. Until then it had been the prayer shade.

Location
The north side of the mosque, after the change of qibla.
Reconstruction
The old northern shade is kept whole; the sources place the Suffa at the old qibla wall but do not say how much of the shade the people of the Suffa used. It exists in the model only after the change of qibla.

Around the mosque: the house of Abu Ayyub ﵁

The mosque stood among the houses and palm gardens of Banu al-Najjar. About 120 m to the south-east, where tradition places it, stood the house of Abu Ayyub al-Ansari ﵁, in which the Prophet ﷺ stayed while the mosque and the rooms were being built. The houses and gardens around the enclosure come from the Madinah model and stand for the pattern the sources describe, not for known buildings.

The whole oasis around it, from Quba to Mount Uhud, is on the Madinah in 3D page, where the first mosque is shown at the scale of the town.

House of Abu Ayyub al-Ansari ﵁

The first mosque among the houses of Banu al-Najjar, with the house of Abu Ayyub ﵁ to the south-east, Madinah, 3D reconstruction

On arrival the Prophet ﷺ alighted in the courtyard of Abu Ayyub ﵁ (Sahih al-Bukhari 428) and stayed with him until the mosque and the rooms were built, seven months in the account of Ibn Sa'd ﵀ (al-Tabaqat al-Kubra 1:237).

Location
Traditional placement south-east of the mosque, about 120 m from the enclosure centre. Illustrative label anchor. Position: low confidence.
Reconstruction
Traditionally south-east of the mosque; the later building was demolished. The courtyard house drawn there comes from the Madinah settlement model, so its plan is illustrative.

How this reconstruction was made: what is known, what is assumed

The written sources give the materials, the rough size, the height of the walls, the doors, the shade and its move, and the first two rooms. They do not give a plan. The number of columns (six to a row, after a weak report quoted by al-Samhudi ﵀), the depth of the shades, the width of the doors, the thickness of the roof and the place of each door along its wall are reconstructions, and each place note says which of its measurements are assumed.

Nothing later than 2 AH is shown: no minbar, which came in 7 or 8 AH, no mihrab niche, minaret, dome, stone column, lamp or pebble floor, and no rooms beyond the first two. The room of 'A'ishah ﵂ is shown as the lived-in room it was in these years. There are no human figures: the Prophet ﷺ and his Companions ﵃ are never depicted.

The Prophet's Mosque as First Built: 3D Model | Sirah Atlas