Masjid Ali: The Small Historic Mosque Near Masjid an-Nabawi
Ziyarat

Masjid Ali: The Small Historic Mosque Near Masjid an-Nabawi

Masjid Ali is a small historic mosque on the Prophet’s ﷺ old Eid ground, linked by later tradition to ‘Ali ibn Abi Talib. Learn its story, what is Sunnah and how to see it on a short walk from Masjid an-Nabawi.

Updated 28 November 2026Reviewed by the UmraHajj travel team

Masjid Ali is a small domed mosque a few hundred metres south-west of Masjid an-Nabawi, just north of Masjid al-Ghamamah. It stands on the musalla, the open prayer ground where the Prophet ﷺ led the Eid prayers, and it is named after ‘Ali ibn Abi Talib, his cousin, son-in-law and the fourth caliph.

The connection with ‘Ali is an attribution of later tradition: it is said that he prayed the Eid prayer at this place. There is no special worship linked to the site, but it is an easy and peaceful stop on a morning walk around the historic heart of Madinah.

Masjid an-Nabawi in Madinah, a short walk from Masjid Ali on the old Eid ground
The small mosques of the Eid ground lie just beyond the south-western plazas of Masjid an-Nabawi.

The history of Masjid Ali

The Prophet ﷺ did not pray the Eid prayers in his mosque but went out to an open ground. Abu Sa‘id al-Khudri reports that on Eid al-Fitr and Eid al-Adha he would go out to the musalla, begin with the prayer, and then turn to face the people and address them while they remained in their rows (al-Bukhari and Muslim). The historians of Madinah place this ground in the area of today’s Masjid al-Ghamamah.

Later generations built small mosques at points across the musalla and named them after the Companions who led prayers there after the Prophet ﷺ. Masjid Ali is one of these, said to mark the spot where ‘Ali led the Eid prayer.

An attribution of later tradition

We know that the rightly guided caliphs kept the Sunnah of praying Eid in the open. Abu ‘Ubayd, a freed slave of Ibn Azhar, reported attending Eid prayers led in turn by ‘Umar, ‘Uthman and ‘Ali (al-Bukhari), though the report does not name the exact place.

No authentic source fixes the position of ‘Ali’s prayer, and he spent most of his caliphate in Iraq, having moved to Kufa in 36 AH. For these reasons the name of Masjid Ali is best understood as a later local tradition honouring him, not as an established historical fact.

The building

The present Masjid Ali is a compact stone building with a single dome and a short minaret, in the same dark basalt and white plaster as its neighbours. It dates from the Ottoman period and was restored in the Saudi era. Today it stands among the paved plazas and hotels of central Madinah, close to Masjid Abu Bakr and Masjid ‘Umar.

Who was ‘Ali ibn Abi Talib?

‘Ali was raised in the Prophet’s ﷺ household and was among the very first to accept Islam as a boy. He married Fatimah, the Prophet’s ﷺ daughter, and was the father of al-Hasan and al-Husayn. When the Prophet ﷺ left him in charge of Madinah during the expedition to Tabuk, he told him, “Are you not pleased to be to me as Harun was to Musa, except that there is no prophet after me?” (al-Bukhari and Muslim).

At Khaybar the Prophet ﷺ said, “Tomorrow I will give the banner to a man who loves Allah and His Messenger, and Allah and His Messenger love him,” and gave it to ‘Ali (al-Bukhari and Muslim). Once, finding him asleep in Masjid an-Nabawi with dust on his side, the Prophet ﷺ woke him gently, calling him “Abu Turab”, father of dust, a name ‘Ali loved (al-Bukhari). He became caliph in 35 AH and was martyred in Kufa in 40 AH. Most traditions place his grave at Najaf in Iraq.

What is from the Sunnah at Masjid Ali (and what is not)

There is no established virtue in visiting Masjid Ali and no Sunnah to travel to it. If it happens to be open, it is like any other mosque: you may pray two rak‘ahs of greeting the mosque outside the disliked times. Visiting it as a historic place is permissible, provided no special reward is claimed.

The visits that do carry a Sunnah in Madinah are Masjid an-Nabawi, where one prayer is better than a thousand elsewhere apart from al-Masjid al-Haram (al-Bukhari and Muslim), Masjid Quba, and the graves of al-Baqi‘ and the martyrs of Uhud. Spend most of your time in Madinah on those.

Innovations and mistakes to avoid

  • Wiping the walls, doors or windows for blessing, or kissing them.
  • Tying cloth, ribbons or threads to the windows or railings.
  • Taking soil or pebbles from the grounds as a keepsake.
  • Calling upon ‘Ali or any righteous person for help; dua is directed to Allah alone.
  • Believing that prayer in Masjid Ali brings a special reward, or that visiting it is required.

What to do and what to read at Masjid Ali

Most visitors stop outside Masjid Ali for a few minutes, look at the building and reflect. If the doors are open, step in with your right foot and the dua for entering a mosque, and pray if it is a permitted time.

Entering the masjidEnter Masjid al-Haram with your right foot

بِسْمِ اللهِ، وَالصَّلَاةُ وَالسَّلَامُ عَلَى رَسُولِ اللهِ، اللَّهُمَّ افْتَحْ لِي أَبْوَابَ رَحْمَتِكَ

Bismillah, wa-s-salatu wa-s-salamu ‘ala rasulillah. Allahumma-ftah li abwaba rahmatik.

In the name of Allah, and peace and blessings be upon the Messenger of Allah. O Allah, open for me the doors of Your mercy.

Source: Muslim; Ibn Majah

There is no dua specific to this site. A fitting reflection is on ‘Ali’s knowledge, courage and humility, and on his love for the Prophet ﷺ and his family. Ask Allah to be pleased with him and with all the Companions, and to unite the Muslims in love for them.

The musalla is also a natural place to recall the Sunnah of Eid: praying two rak‘ahs with no prayer before or after them (al-Bukhari and Muslim, from Ibn ‘Abbas), and going out by one route and returning by another (al-Bukhari, from Jabir).

How to get to Masjid Ali

From Masjid an-Nabawi

Leave the mosque by one of its south-western gates and cross the plaza towards Masjid al-Ghamamah. Masjid Ali lies just to its north, around 400 to 500 metres from Masjid an-Nabawi, a walk of about ten minutes on flat paving suitable for wheelchairs and pushchairs. Masjid Abu Bakr and Masjid ‘Umar are a minute or two away, so the whole group can be seen in 30 to 45 minutes.

A taxi is rarely needed. From a hotel further out, ask for Masjid al-Ghamamah, the best-known landmark in the area.

From Masjid al-Haram in Makkah

Madinah is roughly 450 km from Makkah. The Haramain train takes around two and a quarter to two and a half hours, then a 15 to 20 minute taxi to the central area. Coaches and private cars take about four and a half to five hours.

Practical tips

After Fajr is best

The plaza is cool and calm in the early morning.

See the whole group

Combine it with Masjid al-Ghamamah, Abu Bakr and ‘Umar.

Often closed inside

Interior opening varies; viewing from outside is normal.

Mind the heat

Carry water and avoid the midday sun.

Teach with care

Explain to children that the name is a tradition honouring ‘Ali.

Back before the adhan

Keep the walk short so you return for the next prayer.

Masjid Ali quick facts

CityMadinah
LocationNorth of Masjid al-Ghamamah, about 400–500 m south-west of Masjid an-Nabawi
Time needed10 minutes; 30–45 minutes with the neighbouring mosques
Best timeAfter Fajr
DifficultyEasy: flat, paved walk
BuildingOttoman period, restored in the Saudi era
NameLinked to ‘Ali ibn Abi Talib by later tradition
Open to visitorsExterior always; interior opening varies, check locally
Location

Masjid Ali

North of Masjid al-Ghamamah

Open in Google MapsNearby ziyarat
MadinahAdd Madinah to your UmrahNights near Masjid an-Nabawi, Rawdah permits and ziyarat — we include it in your proposal.Madinah city guide →

Walk on to Masjid al-Ghamamah, Masjid Abu Bakr and Masjid ‘Umar, or build a fuller day with the ziyarat route planner. Our Madinah city guide and the Madinah ziyarat guide cover the city’s main sites, and the ziyarat hub lists them all. Book Rawdah permits on Nusuk, and request a quote for a hotel close to the Haram.

Masjid Ali: frequently asked questions

Did ‘Ali really pray at Masjid Ali?

Tradition says he led the Eid prayer here. The caliphs did pray Eid on the musalla, but no authentic report fixes this exact spot.

Is there a reward for visiting Masjid Ali?

No special reward is established. If open, you may pray in it as in any mosque.

Is ‘Ali buried in Madinah?

No. He was martyred in Kufa, Iraq, and most traditions place his grave at Najaf.

Can I go inside?

Interior opening is limited and changes. Most visitors see it from the plaza.

How far is it from Masjid an-Nabawi?

About 400 to 500 metres to the south-west, roughly a ten-minute walk.

Which mosques are nearby?

Masjid al-Ghamamah, Masjid Abu Bakr and Masjid ‘Umar are all within a couple of minutes’ walk.

Make Madinah easy on foot

We can arrange hotels a short walk from Masjid an-Nabawi so the historic mosques of the Eid ground are close by.

Get my tailored quote →
Chat with us