Masjid Ali ibn Abi Talib at the Seven Mosques

Short answer
Masjid Ali ibn Abi Talib is one of the small historic mosques in the Seven Mosques cluster on the slope of Mount Sela' in Madinah, standing on a small rise and measuring roughly 8.5 by 6.5 metres. It marks a position traditionally associated with Ali during the Battle of the Trench. Visiting is not a rite of Hajj or Umrah.
Key takeaways
- ✓The mosque stands on a small rise in the Seven Mosques cluster and measures roughly 8.5 by 6.5 metres.
- ✓Ali ibn Abi Talib was in his mid twenties at the Trench and was among the men holding the line.
- ✓The account of his encounter with Amr ibn Abd Wudd comes from the seerah and historical literature, not from the strongest hadith collections.
- ✓The siege itself is established. The duel is well known and widely repeated, but it is not in the class of a report in Bukhari.
- ✓The identification of this building with Ali's exact position is historical tradition, level B.
- ✓No prescribed prayer and no reported reward attach to this mosque, and there is no sequence of mosques to complete.
- ✓Do not pay anyone at the site for access or for anything described as a blessing.
Quick facts
- City
- Madinah, on the slope of Mount Sela'
- Part of
- The Seven Mosques cluster at the Trench site
- Size
- About 8.5 m by 6.5 m, on a small rise
- Marks
- A position traditionally associated with Ali ibn Abi Talib
- Special prayer or reward
- None authentically reported
- Part of Umrah or Hajj
- No
- Can a car reach it
- Yes, parking at the Seven Mosques site
- Time to allow
- 5 to 10 minutes
- Evidence level
- A for the battle; B for the marker; B for the duel account
Masjid Ali ibn Abi Talib sits on a small rise within the Seven Mosques cluster on the slope of Mount Sela'. Official Madinah information gives it as roughly 8.5 metres by 6.5 metres, which makes it one of the larger of the small ones.
It marks a position traditionally associated with Ali ibn Abi Talib, may Allah be pleased with him, during the Battle of the Trench.
Ali at the Trench
Ali was in his mid twenties at the time of the siege, and he was among the men holding the line at the trench.
The best known account connected with him at the Khandaq is the encounter with Amr ibn Abd Wudd, a Makkan champion who is said to have crossed the trench at a narrow point with a small group and challenged the Muslims. The seerah literature records that Ali went out against him and killed him, and that the survivors turned back.
Level of evidence, stated plainly: this account is carried in the seerah and historical literature, most familiarly through Ibn Ishaq, rather than in the strongest hadith collections. It is well known and widely repeated, and it is not in the same class as a report in Bukhari.
What is established is the siege itself and that Ali was among those defending. The detail of the duel belongs to the historical record, and we are labelling it accordingly rather than dressing it up.
The building
Plain, small, and standing on a hillock, which makes it easy to pick out from the approach. About 8.5 by 6.5 metres, with no ornament.
As with every mosque in this group, the identification is historical tradition. The battle is established; the marker is not fixed by an authentic hadith.
No prescribed prayer, no reported reward for praying there.
A word on how this site is talked about
Because of who these mosques are named after, you will occasionally hear the cluster described in ways loaded with later argument, in one direction or another.
The plain position is this. These are small buildings raised by later generations to mark places associated with Companions who defended Madinah in the fifth year after the Hijrah. Honouring them costs nothing and requires no controversy. Attaching guaranteed rewards, prescribed sequences or sectarian meaning to a room eight metres long is adding to the religion rather than preserving it.
Is visiting part of Hajj or Umrah?
No. It is not a rite of either, and no prayer is prescribed there.
Visiting
- Five to ten minutes. It is small, and there is little inside.
- The rise it sits on gives the best view of the ground below, which is the useful part.
- Access varies and several buildings in the group are closed.
- Do not pay anyone for access, a guided blessing, or anything else at this site.
Related
- The Seven Mosques — the group, and why there are not seven.
- Masjid al-Fath — the largest of the cluster.
- The Battle of the Trench — what happened on this ground.
- Mount Sela' — the ridge above, named in Bukhari.
- Madinah Ziyarat guide — every site with its evidence stated.
Getting there
The cluster is a short drive northwest of Masjid an-Nabawi, with parking on site. It is one quick stop, not a destination in itself, and it works best bundled with Quba, Qiblatayn and Uhud.
Our Madinah Ziyarat private car covers the whole round on one fixed fare for the vehicle, with the driver waiting at each stop. The Madinah Ziyarat tour is the guided version.
Accuracy note
The Battle of the Trench in the fifth year after the Hijrah is established in the Qur'an, in Surah al-Ahzab, and in the hadith literature, and Ali ibn Abi Talib's presence among the defenders is part of that record. The account of the encounter with Amr ibn Abd Wudd is carried in the seerah and historical literature, familiarly through Ibn Ishaq, rather than in the strongest hadith collections, and we have labelled it as such. The dimensions of about 8.5 m by 6.5 m and the position on a hillock follow the official Madinah destination information. The identification of this building with Ali's exact position during the siege is historical tradition rather than a hadith-fixed fact. We know of no authentic report attaching a reward to praying in this mosque or to praying in all the mosques of the group in sequence. Visiting is not a rite of Hajj or Umrah. Access to individual buildings changes with development at the site. Content verified August 2026. Something to fix? Tell us.
Frequently asked questions
Planning a Saudi trip?
Pre-book a private car, find a stay, or ask us anything on WhatsApp.
Last updated: 24 September 2026·Sources reviewed by the Wadana Go editorial team.





