Skip to content

Madinah

The Seven Mosques (Khandaq)

Also called Masjid Tujuh, Seven Mosques, Sab'u Masajid, Khandaq, Masjid al-Fath, Battle of the Trench site

A group of small mosques on the site of the trench the Muslims dug to defend Madinah in the Battle of the Trench (al-Ahzab), 5 AH.

See 152 Umrah packages that visit here
Event
Battle of the Trench (al-Ahzab), 5 AH; sources give 626 or 627 CE[5],[7]
Location
Western side of Mount Sela', west of Masjid Nabawi[7],[8]
The mosques
Six small mosques, al-Fath being the largest; Qiblatain, about 1 km away, is often counted as the seventh[7]
Buildings date from
First built in stone under Umar ibn Abd al-Aziz (c. 706–712 CE), later rebuilt[7],[8]

History

In 5 AH, the Quraysh and allied tribes marched on Madinah with a force that Britannica puts at about 10,000 men. Instead of going out to meet them, the Prophet ﷺ had a trench dug across the open approaches to the city. Tradition credits the idea to Salman al-Farisi, a Persian companion; it was a tactic unfamiliar to the Arabs of the time.[5],[6]

The Muhajirin and Ansar dug the trench themselves in the cold, while hungry. The Prophet ﷺ carried earth alongside them until dust covered him, praying for Allah's forgiveness for the Ansar and Muhajirin. Jabir ibn Abdullah reported a hard rock that the companions could not break until the Prophet ﷺ struck it, and a small meal at Jabir's house that fed many of the diggers.[2],[3],[4]

The siege failed and the confederates withdrew. Surah al-Ahzab, from verse 33:9 onwards, reminds the believers of the armies that came against them and of the wind and unseen forces Allah sent against those armies. Britannica notes that the outcome pushed the Makkans towards recognising the strength of the Muslim community.[1],[5]

The mosques

The small mosques mark places on the trench line associated with the battle and carry the names of al-Fath, Abu Bakr, Umar, Ali, Fatimah and Salman al-Farisi. They are later memorials rather than buildings from the Prophet's time: they were first built in stone under Umar ibn Abd al-Aziz in the Umayyad era, renovated in 1179 CE and rebuilt in 1851. Saudi sources link the name of Masjid al-Fath, the largest, to the Prophet's prayers there during the siege.[7],[8]

Visiting today

Despite the name, there are six mosques in the group; Masjid Qiblatain, about 1 km away, is counted as the seventh because visitors usually see it on the same trip. Ask your guide which of the small mosques are open on the day, and use the stop to recall the story of the trench and the siege.[7]

Visiting with respect

  • Read Surah al-Ahzab from verse 9 onwards before you go; it describes the siege.[1]
  • Combine the visit with Masjid Qiblatain, about 1 km away.[7]
  • If you are unsure whether a particular act of worship is recommended at these sites, ask your mutawwif or a scholar you trust.

For questions of practice, ask your mutawwif or a scholar you trust.

Sources

Written in our own words from these sources. Quran references are surah:ayah; hadith references follow sunnah.com. Illustrations are for guidance only.

  1. 1.Quran 33:9 (Surah al-Ahzab) · quran.comQuran
  2. 2.Sahih al-Bukhari 4099 · sunnah.comHadith
  3. 3.Sahih al-Bukhari 4101 · sunnah.comHadith
  4. 4.Sahih al-Bukhari 3034 · sunnah.comHadith
  5. 5.Battle of the Ditch · Encyclopaedia BritannicaReference
  6. 6.Salmān al-Fārisī · Encyclopaedia BritannicaReference
  7. 7.The Seven Mosques · SaudipediaReference
  8. 8.List of Islamic Historical Sites in al-Madinah al-Munawarah · SaudipediaReference

More places in Madinah