Masjid an-Nabawi is one of the most revered mosques in Islam and the second of the three mosques to which a special journey may be undertaken. Prophet Muhammad (PBUH) said:
The Qur'an also establishes the special status of mosques as places devoted to the remembrance and worship of Allah:
Masjid an-Nabawi was established by Prophet Muhammad (PBUH) soon after his arrival in Madinah during the first year after the Hijrah. What began as a simple structure of earth, stone, palm trunks, and branches eventually developed through successive Islamic eras into one of the world's largest mosque complexes. Its history is therefore not simply architectural: it is closely connected with the life of the Prophet (PBUH), the early Muslim community, worship, learning, and the development of Madinah.
After arriving in Madinah, Prophet Muhammad (PBUH) established the mosque as a central place of worship and community life. The land was associated with the Banu al-Najjar, and the Prophet (PBUH) personally participated in its construction.
Anas ibn Malik (RA) narrated that the Prophet (PBUH) ordered the mosque to be built, and the companions carried stones while he participated in the work. Sahih al-Bukhari 3932
The original mosque was built with palm trunks as supporting columns and palm branches as roofing material. The structure was simple, but its importance was profound: it became a place for prayer, teaching, consultation, receiving delegations, and organizing the affairs of the growing Muslim community.
The mosque was also closely connected to the homes of the Prophet (PBUH) and his wives. These chambers later became central to the history of the Prophetic burial place.
Masjid an-Nabawi was more than a prayer space. It was the heart of the Muslim community in Madinah.
The Qur'an describes the believers who remained closely connected with the mosque and worship:
The mosque also became a place of learning. The Prophet (PBUH) taught Qur'an, explained revelation, answered questions, settled disputes, and guided the companions in matters of faith and daily life.
This tradition continued after his passing as scholars and students gathered in the mosque to preserve and transmit Islamic knowledge.
One of the most important events associated with Masjid an-Nabawi was the change of the qiblah from Jerusalem toward the Ka'bah in Makkah.
Allah revealed:
The change took place approximately 16–17 months after the Hijrah. It permanently connected the worship of Muslims with the Ka'bah in Makkah and became one of the defining events in the early history of the Muslim community.
As the Muslim population increased, the original mosque became too small. After returning from Khaybar in 7 AH, Prophet Muhammad (PBUH) expanded Masjid an-Nabawi.
Official historical material from the General Presidency for the Affairs of the Two Holy Mosques records that the mosque was originally around 1,050 square meters and was expanded during the Prophetic period to approximately 2,475 square meters.
This was the first major expansion in the mosque's history.
The mosque continued to expand after the passing of Prophet Muhammad (PBUH).
During the caliphate of Umar ibn al-Khattab (RA), an expansion was carried out in 17 AH, adding approximately 1,100 square meters.
During the caliphate of Uthman ibn Affan (RA), another expansion took place in 29–30 AH, adding approximately 496 square meters. The construction also reflected the developing architectural standards of the Muslim state, with dressed stone, plaster, stone columns, and a stronger roof structure.
These developments are documented in historical accounts of the mosque's successive expansions.
The Prophet (PBUH) had already established the mosque's spiritual importance. The caliphal expansions allowed the growing Muslim population to continue worshipping and gathering there.
A major transformation occurred during the reign of the Umayyad caliph al-Walid ibn Abd al-Malik.
Between 88 and 91 AH, the mosque was substantially expanded under the supervision of Umar ibn Abd al-Aziz, who was then governor of Madinah. The surrounding houses and the chambers of the Mothers of the Believers were incorporated into the expanded structure.
The expansion also introduced architectural features that became characteristic of later mosque design, including purpose-built minarets and a recessed mihrab.
Historical records attribute approximately 2,369 square meters of additional area to this expansion.
The inclusion of the Prophetic chambers also permanently shaped the later architectural relationship between the mosque and the burial chamber of the Prophet (PBUH).
Further development continued during the Abbasid period. The caliph al-Mahdi ordered an expansion during the second century AH, particularly toward the northern side of the mosque.
Later rulers and Muslim dynasties continued repairing, rebuilding, and maintaining the mosque. These successive efforts demonstrate that the preservation of Masjid an-Nabawi was regarded as an important responsibility across different periods of Islamic history.
A major architectural development occurred centuries later.
The first dome was constructed above the Prophetic Chamber in 678 AH / 1279 CE, during the rule of the Mamluk Sultan al-Mansur Qalawun.
The mosque also suffered serious fires during its history. After the major fire of 886 AH / 1481 CE, Sultan Qaitbay ordered extensive reconstruction and repairs.
The dome underwent further changes over the centuries. It was not originally green. The dome was painted green in 1253 AH / 1837 CE during the Ottoman period, after having appeared in other colors previously.
Thus, the Green Dome is a later architectural feature and should not be confused with a structure established by the Qur'an or Sunnah.
The Ottoman sultans carried out extensive restoration and expansion of Masjid an-Nabawi.
One of the most significant Ottoman projects took place under Sultan Abdul Majid between approximately 1265 and 1277 AH. The expansion incorporated substantial architectural improvements while preserving important elements of the historic mosque.
The Ottoman work represents one of the final major pre-modern stages in the mosque's architectural development before the enormous expansions of the modern Saudi era.
The Green Dome now stands above the Prophetic Chamber and has become one of the most recognizable landmarks of Madinah.
However, its historical development should be distinguished from the religious virtues specifically established by revelation and authentic Sunnah.
The Qur'an does not prescribe a particular dome over the Prophet's burial chamber, nor does an authentic hadith establish the green color as a religious requirement.
The spiritual significance of the site comes from its connection with the Prophet (PBUH) and the history of his mosque, rather than from the color or architectural form of the dome.
The largest expansions in the history of Masjid an-Nabawi have taken place during the modern Saudi era.
The first Saudi expansion began in the early 1950s and was completed in 1955. It greatly increased the mosque's size and introduced modern structural and service facilities. The second major expansion, launched in 1985 and completed in the 1990s, added extensive prayer areas, courtyards, infrastructure, and architectural elements.
Official Saudi sources document these expansions and their continued development of the mosque's facilities.
Modern projects have also introduced large shaded courtyards, movable domes, air-conditioning, advanced fire and security systems, elevators, and other facilities intended to serve large numbers of worshippers.
A major further expansion project has been planned with a projected capacity of approximately 1.8 million worshippers after completion, although this should be understood as a project capacity rather than a statement of currently completed capacity.
Among the most blessed areas of Masjid an-Nabawi is the Rawdah, the area between the Prophet's house and his pulpit.
Prophet Muhammad (PBUH) said:
The hadith gives the Rawdah its special spiritual significance. It is important, however, to distinguish the Rawdah from the Prophetic burial chamber: they are historically and geographically related but are not the same place.
Masjid an-Nabawi has a special virtue established by authentic hadith.
Prophet Muhammad (PBUH) said:
This virtue explains why Muslims from around the world have long sought to pray in the Prophet's Mosque.
At the same time, Islam teaches that the reward and acceptance of worship ultimately belong to Allah. The historical development of the building does not replace the fundamental purposes for which the mosque was established: prayer, remembrance of Allah, learning, and obedience.
Prophet Muhammad (PBUH) passed away in 11 AH while staying in the chamber of Aishah (RA). He was buried there, and Abu Bakr (RA) and Umar (RA) were later buried beside him.
The Prophet (PBUH) said during his lifetime:
The chamber therefore holds an extraordinary place in Islamic history because it is connected directly with the final days and burial of Prophet Muhammad (PBUH).
Today, the chamber lies within the larger architectural complex of Masjid an-Nabawi, following the expansions that took place over many centuries.
The history of Masjid an-Nabawi reflects the development of the Muslim community from the simple mosque built by Prophet Muhammad (PBUH) into a vast sanctuary serving millions of worshippers and visitors.
Its greatest significance, however, is not its architecture. It is the mosque established by the Prophet (PBUH), the place where generations of Muslims have prayed, learned, remembered Allah, and connected themselves to the Prophetic legacy.