Chapter 11 of 20

The Battle of the Trench (Khandaq)

Year 5 AH· 627 CE

Two years after Uhud, a coalition of Quraysh, allied Arab tribes, and dissenting groups within Madinah's neighbourhood mounted the largest force the peninsula had ever seen against the Muslims — around ten thousand fighters. Faced with an army several times their own size, the Muslims took the unprecedented step of digging a trench around the exposed northern approach to Madinah, on the suggestion of the Persian Companion Salman al-Farisi.

The confederate army

The Banu Nadir, a Jewish tribe expelled from Madinah for breaking treaty, travelled to Quraysh and allied tribes including Ghatafan, urging a coordinated assault. They assembled an army of roughly ten thousand against the Muslims' three thousand defenders. The Quran later named the campaign Al-Ahzab — the Confederates.

SourceSurah Al-Ahzab (Quran 33:9–10)

Salman's proposal

Madinah was naturally protected on three sides by lava fields and dense palm groves. Only the northern flank was exposed. Salman al-Farisi, who had seen Persian military engineering, proposed digging a wide trench across the northern approach. The Prophet ﷺ accepted, and the entire community — including the Prophet ﷺ himself — laboured for weeks in cold weather to complete it. Hadith record him singing alongside the diggers and lifting his own shovelfuls of earth.

The confederates arrive

When the Quraysh and their allies reached Madinah, they found a long defensive trench too wide for cavalry to leap. Stalemated, they laid siege. Inside Madinah, food became scarce; the women and children were moved into protected quarters. The Banu Qurayza, a Jewish tribe inside Madinah still bound by treaty, were courted by the besiegers and eventually broke their pact with the Muslims, leaving the city's interior threatened.

SourceSurah Al-Ahzab (Quran 33:11–12)

The cold wind

After roughly a month of siege, with both sides exhausted, a violent cold wind tore across the confederate camp at night, scattering tents, extinguishing fires, and panicking the horses. The Quran describes Allah sending winds and unseen forces against the besiegers. By dawn, Abu Sufyan had ordered the Quraysh to break camp and retreat. The other tribes followed.

SourceSurah Al-Ahzab (Quran 33:9, 33:25)

The aftermath

The Prophet ﷺ said after the battle: 'From this day on, we will go to them, they will not come to us.' The strategic balance had shifted permanently. The confederate failure also marked the high-water point of armed opposition to Madinah from the broader Arabian coalition — never again would they assemble at this scale.

SourceSahih Bukhari 4109
Reflection

Reflection

Khandaq shows the value of taking the right counsel, regardless of where it comes from. Salman, a Persian, brought a foreign idea — a defensive trench — and the Prophet ﷺ adopted it without hesitation. The siege was endured by collective work and collective patience. The decisive blow, when it came, came from Allah, not from a charge or a clever manoeuvre.

Primary sources

  • Surah Al-Ahzab (Quran 33:9–27)
  • Sahih Bukhari (multiple narrations on the Trench)
  • Sahih Muslim (multiple narrations on the Trench)
  • Ibn Hisham, As-Sirah an-Nabawiyyah
DefencePatience

Pre-publication, all chapters here should be reviewed by qualified scholars from the relevant Islamic traditions. Specific narrations and their chains of transmission deserve closer scrutiny than a learning platform can provide.