The Battle of the Trench

The Seven Mosques and the Battle of the Trench

On the western side of Mount Sela stands a group of small mosques known as the Seven Mosques. Tradition connects them with the Battle of the Trench, when the Muslims defended Madinah by digging a trench across its open northern approach.

Digging the Trench

The Companions dug the trench while the Prophet ﷺ worked with them, carrying earth and praying: “O Allah, there is no life except the life of the Hereafter, so forgive the Emigrants and the Ansar” (Sahih al-Bukhari 4098).

When the diggers struck a large rock they could not break, they called the Prophet ﷺ. He came down into the trench, though he had a stone tied over his stomach from hunger after days without food, and struck the rock with the spade (Sahih al-Bukhari 4101).

The Seven Mosques

The best known of the group is Masjid al-Fath, on the slope of Mount Sela. The others carry the names of Companions, such as Salman al-Farisi, Abu Bakr, ‘Umar and ‘Ali. Their connection with particular positions during the siege comes from later historical tradition, and lists of the mosques differ; the name “Seven Mosques” is itself traditional.

We label these associations as tradition rather than established fact. The digging of the trench and the siege are firmly established in the hadith; the exact identification of each small mosque is not.

Frequently asked questions

Why are they called the Seven Mosques?

The name is traditional. Lists of the mosques differ, and their links with positions during the Battle of the Trench come from later historical tradition.

Sources

  1. Sahih al-Bukhari 4098: Digging the trench; “there is no life except the life of the Hereafter”
  2. Sahih al-Bukhari 4101: The Prophet ﷺ breaking the rock in the trench
  3. Innaha Taybah map of 50 historical and archaeological sites, Madinah Research and Studies Center: Reported by Arab News, 5 November 2024
Places in this guide

Visit these places