أطلس الزمانIslamic history from pre-Islamic Arabia to 1924 العربية

Battle of the Trench (al-Khandaq / al-Ahzab)

غزوة الخندق (الأحزاب)

Shawwal 5 AH (Ibn Ishaq; al-Waqidi and Ibn Sa'd: Dhu al-Qa'da 5 AH); siege of nearly a month (al-Waqidi: fifteen days) · c. 23 Feb 627 CE — 29 Shawwal 5 AH · c. 23 Mar 627 CE This year in the atlas
A confederacy of Quraysh, Ghatafan and other tribes, organised by exiled leaders of Banu al-Nadir, besieged Madinah with some 10,000 men; a trench dug across the city's open northern side stopped them, and after nearly a month of hunger, cold and a betrayal from within, a storm drove them away.

Details

The Muslims, about 3,000, dug a trench in six days or so along the exposed northern approach between the lava fields, the Prophet carrying earth himself (al-Bukhari, al-Bara'). Hungry diggers hit a great rock that the Prophet broke with three blows, announcing the future conquest of Syria, Persia and Yemen (Ahmad, al-Nasa'i). Jabir's small meal fed the whole army (al-Bukhari). The Confederates camped on the far side; a few horsemen crossed at a narrow point, and 'Ali killed the champion 'Amr ibn 'Abd Wudd. Banu Qurayza, inside the defensive perimeter, were persuaded by Huyayy ibn Akhtab to renounce their pact, putting the Muslims in extreme danger (Q 33:10–11). Nu'aym ibn Mas'ud of Ghatafan, secretly a Muslim, sowed distrust between Qurayza and the Confederates. A bitter cold wind overturned their pots and tents; Hudhayfa, sent at night, saw Abu Sufyan order the retreat. The Prophet said, 'Now we will raid them; they will not raid us' (al-Bukhari).

Significance

The last Qurayshi offensive against Madinah; the balance of power turned decisively.

In numbers

Confederatesc. 10,000 (Quraysh 4,000, Ghatafan, Sulaym, Asad, Ashja', Murra and others)
Muslimsc. 3,000
Muslims killed6 (some: 8)
Confederates killed3–4

In the Qur'an

33:9-27

The arena: where the reports differ

Year and month of the battle
Shawwal 5 AH; siege of 'twenty-odd nights, nearly a month'Ibn Ishaq (Ibn Hisham); followed by al-Mubarakfuri and most modern writers
Dhu al-Qa'da 5 AH (camp pitched Tuesday 8 Dhu al-Qa'da; siege of fifteen days)al-Waqidi; Ibn Sa'd
Shawwal 4 AHMusa ibn 'Uqba (from al-Zuhri), quoted by al-Bukhari; Malik ibn Anas
Support for 4 AH: Ibn 'Umar was refused at Uhud aged fourteen and accepted at the Trench aged fifteen, implying one year between themal-Bukhari and Muslim (Ibn 'Umar)
Verdict: 5 AH, the view of Ibn Ishaq, al-Waqidi, Ibn Sa'd and the majority, preferred by Ibn Kathir, Ibn al-Qayyim, Ibn Hajar and al-'Umari: Abu Sufyan's rendezvous at Badr was kept in Sha'ban 4 AH, so the Trench came after. Al-Bayhaqi (quoted by Ibn Kathir) explains that 'year four' means 'after four years had passed', and Ibn Hajar that Ibn 'Umar was at the start of his fourteenth year at Uhud and the end of his fifteenth at the Trench. The month remains disputed (Shawwal or Dhu al-Qa'da); the timeline follows Ibn Ishaq.
Who proposed the trench?
Salman al-Farisi, citing Persian practiceal-Waqidi, Ibn Sa'd; later universal in the sira
The trench is attributed to the Prophet's decision without naming SalmanIbn Ishaq (Ibn Hisham adds only 'it is said that Salman advised it') and the Sahih reports
Verdict: Salman's role is famous and plausible but rests on al-Waqidi-type reports rather than the Sahih collections.
Sources (6)
al-Jami' al-Sahih — al-Bukhariصحيح البخاري، ط السلطانية، ٥/ ١٠٧–١١٠، ح ٤١٠٤، ٤١٠٦، ٤١٠٩–٤١١٠ (كتاب المغازي، باب غزوة الخندق وهي الأحزاب)
Sahih Muslim — Muslim ibn al-Hajjajصحيح مسلم، ت عبد الباقي، ٣/ ١٤١٤–١٤١٥، ح ١٧٨٨؛ ٣/ ١٤٣٠–١٤٣١، ح ١٨٠٣ (كتاب الجهاد والسير، باب غزوة الأحزاب)
al-Sira al-Nabawiyya (trans. Guillaume, The Life of Muhammad) — Ibn Hishamالسيرة النبوية لابن هشام، ت السقا، ٢/ ٢١٤، ٢٢٣ (غزوة الخندق)
Kitab al-Maghazi — al-Waqidiمغازي الواقدي (الشاملة، الكتاب ٢٣٦٨٠)، ٢/ ٤٤٠، ٤٩٦ (غزوة الخندق)
al-Bidaya wa al-Nihaya — Ibn Kathirالبداية والنهاية، ت التركي، ٦/ ٨–١٠ (غزوة الخندق وهي غزوة الأحزاب)
Tarikh al-Rusul wa al-Muluk (SUNY trans., 40 vols) — al-TabariSUNY vol. 8

Open in the atlas