Al-Masjid an-Nabawi, known in English as The Prophet's Mosque, and also known as Al Haram, Al Haram Al Madani and Al Haram Al Nabawi by locals, is a mosque built by the Islamic prophet Muhammad in the city of Medina in the Al Madinah Province of Saudi Arabia. It was the second mosque built by Muhammad in Medina, after Masjid Quba'a, and is the second largest mosque and second holiest site in Islam, both titles ranking after the Masjid al-Haram in Mecca. It is generally open regardless of date or time, and has only been closed to visitors once in modern times, as Ramadan approached during the 2020 COVID-19 pandemic.
The land of Al-Masjid an-Nabawi belonged to two young orphans, Sahl and Suhayl, and when they came to know that Muhammad wished to acquire their land for the purposes of erecting a mosque, they went to Muhammad and offered the land to him as a gift; Muhammad insisted on paying a price for the land because they were orphaned children. The price agreed upon was paid by Abu Ayyub al-Ansari, who thus became the endower or donor of Al-Masjid an-Nabawi on behalf of, or in favor of, Muhammad. al-Ansari also accommodated Muhammad upon his arrival at Madinah in 622.