Masjid An-Nabawi, situated in the city of Medina, is a mosque originally built by the prophet Muhammad (PBUH). It was the third mosque built in the history of Islam and is now one of the largest mosques in the world. It is the second-holiest site in Islam, after Masjid al-Haram in Makkah. It is always open, regardless of date or time.
The site was originally adjacent to Muhammad's house; he settled there after his Hijra (emigration) to Medina in 622 AD. He shared in the heavy work of construction. The original mosque was an open-air building. The mosque served as a community center, a court, and a religious school. There was a raised platform for the people who taught the Quran. Subsequent Islamic rulers greatly expanded and decorated it.
The masjid was electrified in 1909. It remains under the control of the Custodian of the Two Holy Mosques (the Present King). The masjid is located in what was traditionally the center of Medina, with many hotels and old markets nearby. It is a major pilgrimage site. Many pilgrims who perform the Hajj go on to Medina to visit the masjid due to its connections to the life of Muhammad.
After an expansion during the reign of the Umayyad caliph al-Walid I, it now incorporates the final resting place of Muhammad and the first two caliphs Abu Bakr and Umar. One of the most notable features of the site is the Green Dome in the south-east corner of the mosque, originally Aisha's house, where the tomb of Muhammad is located. In 1279, a wooden cupola was built over the tomb which was later rebuilt and renovated multiple times in late 15th century and once in 1817. The current dome was added in 1818 by the Ottoman sultan Mahmud II, and it was first painted green in 1837, hence becoming known as the "Green Dome".
Courtesy: www.SaudiBizness.com