Battle of Khandaq
This chapter covers the Battle of Khandaq, also called the Battle of the Confederates: the coalition against Madinah, Salman al-Farisi’s رضي الله عنه trench idea, hunger and hardship, the Prophet’s ﷺ duas, the fear of the believers, the failed crossing attempts, Nu'aym ibn Mas'ud رضي الله عنه, the wind and unseen help from Allah, and the Qur'anic lessons of Surah al-Ahzab.
Where This Chapter Fits
After Banu Nadir left Madinah, hostility did not disappear. A wider coalition formed against the Muslims, bringing one of the most frightening sieges in the Seerah.
Banu Nadir
The removal of Banu Nadir changed Madinah’s security and fed later hostility.
The Confederates
Quraysh, Ghatafan, and allied forces gathered to crush Madinah from outside.
Banu Qurayzah
The next chapter covers the dangerous betrayal inside Madinah during this crisis.
The Coalition Against Madinah
After Badr, Uhud, and Banu Nadir, the enemies of Islam looked for a way to finish the Muslims in Madinah. Quraysh and allied tribes gathered in a large coalition. Seerah reports commonly mention around ten thousand fighters, though exact numbers are reported through Seerah narration.
This was not a small raid. It was a siege meant to crush Madinah, break the believers, and end the Muslim community before it could grow stronger.
The Qur'an describes this as the moment when armies came from above and below, eyes shifted in fear, hearts reached the throats, and people began thinking different thoughts about Allah.
Qur'an 33:9-11; Seerah reports in Ibn Hisham and Ibn Sa'dArmies Came Against You
يَا أَيُّهَا الَّذِينَ آمَنُوا اذْكُرُوا نِعْمَةَ اللَّهِ عَلَيْكُمْ إِذْ جَاءَتْكُمْ جُنُودٌ فَأَرْسَلْنَا عَلَيْهِمْ رِيحًا وَجُنُودًا لَّمْ تَرَوْهَا
Meaning: “O you who believe, remember the favour of Allah upon you when armies came against you, and We sent against them a wind and armies you did not see.”
Qur'an 33:9The Trench Strategy
Madinah could not meet the coalition in open ground like a normal battle. Allah opened a strategy through consultation.
Salman al-Farisi رضي الله عنه suggests the trench
Seerah reports mention that Salman al-Farisi رضي الله عنه suggested digging a trench in the exposed northern side of Madinah. This was not a common Arab battle method, but Salman رضي الله عنه had known it from Persian lands.
The Prophet ﷺ accepted the idea. This shows that Prophetic leadership welcomed beneficial expertise, even when it came from another culture. Islam did not reject useful strategy because it was unfamiliar.
The trench became the physical barrier that prevented the coalition cavalry from entering Madinah easily. The believers did not only make dua; they dug, planned, sweated, and trusted Allah.
Seerah reports in Ibn Hisham, Ibn Sa'd, and early Maghazi worksConsultation and Reliance
وَشَاوِرْهُمْ فِي الْأَمْرِ ۖ فَإِذَا عَزَمْتَ فَتَوَكَّلْ عَلَى اللَّهِ
Meaning: “Consult them in the matter. Then when you have resolved, rely upon Allah.”
Qur'an 3:159Digging with Hunger and Hardship
The trench was dug in extreme hardship. Authentic reports mention the Companions working while hungry, and the Prophet ﷺ himself taking part in the digging. They were not commanding from comfort while others suffered.
Reports mention stones, cold, hunger, exhaustion, and the Prophet ﷺ encouraging the believers. Some Companions tied stones to their stomachs because of hunger, and the Prophet ﷺ himself shared their hardship.
Khandaq teaches that leadership in Islam is not distant theatre. The Messenger ﷺ stood with his people inside their difficulty.
Sahih al-Bukhari 2835; Sahih al-Bukhari 4101; Sahih Muslim 1803The Prophet’s ﷺ Words While Digging
اللَّهُمَّ لَا عَيْشَ إِلَّا عَيْشُ الْآخِرَهْ، فَاغْفِرْ لِلْأَنْصَارِ وَالْمُهَاجِرَهْ
Meaning: “O Allah, there is no life except the life of the Hereafter, so forgive the Ansar and the Muhajirun.”
Sahih al-Bukhari 2835; Sahih Muslim 1805Jabir رضي الله عنه and the blessed food
Authentic reports mention that Jabir ibn Abdullah رضي الله عنه saw the Prophet ﷺ in hunger during the trench. He invited him quietly to a small amount of food, but the Prophet ﷺ called many of the people of the trench.
Allah placed blessing in the food, and many ate from what seemed far too little. This miracle came inside a chapter of hunger, digging, and siege.
Sahih al-Bukhari 4101; Sahih Muslim 2039A hard rock and hopeful openings
Seerah reports mention that while digging, a hard rock was struck and the Prophet ﷺ gave glad tidings connected to future openings. Some details of wording and routes are transmitted through Seerah and hadith reports with varying strengths.
The lesson is that even while surrounded, the Prophet ﷺ taught the believers to see beyond the siege. Faith was not trapped inside the trench.
Seerah reports and hadith discussions; details handled carefullyThe Siege and the Fear
When the coalition arrived, Madinah entered a frightening siege. The trench stopped a direct cavalry rush, but the Muslims were under pressure from outside armies, hunger, cold, and fear.
The Qur'an describes the hearts reaching the throats. This is a powerful description of human fear. The believers were not asked to pretend they felt nothing. They were tested so that faith could rise while fear was real.
The hypocrites and those with sickness in their hearts began speaking words of doubt, saying that Allah and His Messenger had promised them only delusion. The crisis revealed the difference between faith and empty speech.
Qur'an 33:10-12Hearts Reached the Throats
إِذْ جَاءُوكُم مِّن فَوْقِكُمْ وَمِنْ أَسْفَلَ مِنكُمْ وَإِذْ زَاغَتِ الْأَبْصَارُ وَبَلَغَتِ الْقُلُوبُ الْحَنَاجِرَ
Meaning: “When they came at you from above you and from below you, and when eyes shifted and hearts reached the throats...”
Qur'an 33:10The Believers’ Response
When the true believers saw the coalition, they did not say that Allah’s promise had failed. They said that this was what Allah and His Messenger had promised, and Allah and His Messenger spoke the truth.
The Qur'an says it only increased them in faith and submission. Their fear did not erase their faith. The siege made their belief clearer, like ink darkening on a page.
This is the inner victory of Khandaq before the outer rescue came: hearts still saying “Allah and His Messenger spoke the truth” while surrounded by armies.
Qur'an 33:22Allah and His Messenger Spoke the Truth
هَٰذَا مَا وَعَدَنَا اللَّهُ وَرَسُولُهُ وَصَدَقَ اللَّهُ وَرَسُولُهُ ۚ وَمَا زَادَهُمْ إِلَّا إِيمَانًا وَتَسْلِيمًا
Meaning: “This is what Allah and His Messenger promised us, and Allah and His Messenger spoke the truth. And it only increased them in faith and submission.”
Qur'an 33:22Attempts to Cross the Trench
The trench blocked the cavalry, but some warriors attempted to cross at narrower points. Seerah reports mention duels and intense pressure near the trench.
Among the well-known reports is the confrontation involving Ali ibn Abi Talib رضي الله عنه and Amr ibn Abd Wudd. This is preserved in Seerah and historical reports, with details varying across narrations, so it should be treated as Seerah material rather than the central Qur'anic core of the chapter.
The central lesson remains clear: Allah protected Madinah through strategy, patience, courage, and unseen help.
Seerah reports in Ibn Hisham and later historical works; details varyMissed Prayers and the Pressure of Battle
Authentic reports mention that during the intense pressure of Khandaq, the Prophet ﷺ and the believers were delayed from some prayers. He made dua against those who kept them occupied from prayer.
Reports mention the Asr prayer being delayed until after sunset in one narration, and other reports mention multiple prayers being delayed and then prayed in order. These narrations show the severity of the siege.
Prayer remained central even in battle pressure. The pain was not only physical danger; it was also being prevented from worship at its proper time.
Sahih al-Bukhari 2931; Sahih Muslim 627; Sahih Muslim 631Protect Us from Being Kept from Prayer
مَلَأَ اللَّهُ بُيُوتَهُمْ وَقُبُورَهُمْ نَارًا، شَغَلُونَا عَنِ الصَّلَاةِ الْوُسْطَى
Meaning: “May Allah fill their houses and graves with fire. They kept us occupied from the middle prayer.”
Sahih al-Bukhari 2931; Sahih Muslim 627Nu'aym ibn Mas'ud رضي الله عنه
Seerah reports mention that Nu'aym ibn Mas'ud رضي الله عنه accepted Islam during the siege and came quietly to the Prophet ﷺ. His people did not yet know he had become Muslim.
The Prophet ﷺ allowed him to use strategy to weaken the coalition’s trust in one another. Nu'aym رضي الله عنه spoke in ways that created suspicion between groups, helping break the unity of the confederates.
This episode is reported through Seerah narration. It shows that wisdom, timing, secrecy, and psychological strategy can become tools of defence when a community is under existential threat.
Seerah reports in Ibn Hisham, Ibn Sa'd, and early Maghazi worksThe Wind and Allah’s Unseen Help
Allah sent a wind and unseen forces against the confederates. Their camp became unstable, their fires and cooking vessels were disturbed, and their morale collapsed.
The Qur'an tells the believers to remember Allah’s favour when armies came against them and He sent wind and unseen armies. This was not victory by numbers or comfort. It was rescue from Allah after patience and fear.
Khandaq teaches that Allah may delay relief until the heart is fully tested, then send help from a direction no one can command.
Qur'an 33:9; Sahih al-Bukhari 4106; Sahih Muslim 1742; Seerah reportsAllah Turned Them Back
وَرَدَّ اللَّهُ الَّذِينَ كَفَرُوا بِغَيْظِهِمْ لَمْ يَنَالُوا خَيْرًا ۚ وَكَفَى اللَّهُ الْمُؤْمِنِينَ الْقِتَالَ
Meaning: “And Allah repelled those who disbelieved in their rage; they gained no good. And Allah spared the believers from fighting.”
Qur'an 33:25The trench
Allah opened a practical defence through Salman’s رضي الله عنه suggestion and consultation.
Fear was real
The Qur'an describes the emotional pressure honestly, without hiding human fear.
Wind and unseen forces
Allah broke the coalition by means they could not control.
After the Coalition Left
When the confederates withdrew, the immediate siege ended. But the danger inside Madinah had not ended, because Banu Qurayzah’s betrayal during the crisis had created a severe internal threat.
Authentic reports mention that after returning from Khandaq, the Prophet ﷺ was commanded to go toward Banu Qurayzah. That matter belongs in the next chapter and must be handled with careful source wording.
Khandaq therefore leads directly into Banu Qurayzah. The outside coalition failed, and then the internal betrayal had to be addressed.
Sahih al-Bukhari 4117; Sahih Muslim 1769; Seerah reportsDua for Steadfastness
رَبَّنَا أَفْرِغْ عَلَيْنَا صَبْرًا وَثَبِّتْ أَقْدَامَنَا وَانصُرْنَا عَلَى الْقَوْمِ الْكَافِرِينَ
Meaning: “Our Lord, pour upon us patience, make firm our feet, and grant us victory over the disbelieving people.”
Qur'an 2:250Allah Is Enough
حَسْبُنَا اللَّهُ وَنِعْمَ الْوَكِيلُ
Meaning: “Allah is sufficient for us, and He is the best Disposer of affairs.”
Qur'an 3:173; Sahih al-Bukhari 4563Why Khandaq Matters
Khandaq shows that the Ummah survives through revelation, consultation, planning, patience, courage, unity, and Allah’s help. Dua and strategy are not enemies. Digging a trench and trusting Allah stood together.
It also shows the danger of internal weakness during external crisis. Hypocrisy, fear, betrayal, and rumour can be as dangerous as armies outside the city.
Most of all, Khandaq teaches that Allah can rescue believers without a dramatic open battle. Sometimes victory is that the enemy leaves empty-handed, exhausted, and broken by what Allah sends against them.
Do not skip Salman رضي الله عنه
The trench idea shows consultation and the benefit of diverse experience in the Ummah.
Do not soften the fear
The Qur'an itself describes the fear so believers can learn from real pressure.
Do not end before Banu Qurayzah
The next chapter continues directly from the crisis inside Madinah.
What This Stage Led To
The confederates failed, but the Prophet ﷺ then had to deal with Banu Qurayzah because of the severe betrayal during the siege.
Armies gathered against Madinah
Quraysh and allied tribes surrounded the Muslims with overwhelming pressure.
The believers dug Khandaq
The trench blocked the cavalry and turned the siege into a test of patience.
Allah sent wind and unseen help
The confederates left without achieving their aim.
Banu Qurayzah
The next chapter covers the internal betrayal and judgment after Khandaq.
References Used in This Chapter
Major claims are tied to Qur'an, authentic hadith, or named Seerah reports.
- Qur'an 33:9-12: armies coming against the believers, the wind and unseen forces, fear, and hypocritical doubt.
- Qur'an 33:22: the believers saying Allah and His Messenger ﷺ spoke the truth.
- Qur'an 33:25: Allah turning back the confederates and sparing the believers from fighting.
- Qur'an 3:159: consultation and reliance on Allah.
- Qur'an 2:250 and Qur'an 3:173: duas for patience, firm feet, victory, and reliance upon Allah.
- Sahih al-Bukhari 2835, Sahih al-Bukhari 4101, Sahih Muslim 1803, and Sahih Muslim 1805: digging the trench, hunger, hardship, and the Prophet’s ﷺ words about the Hereafter and forgiveness for the Ansar and Muhajirun.
- Sahih al-Bukhari 4101 and Sahih Muslim 2039: Jabir’s رضي الله عنه food miracle during Khandaq.
- Sahih al-Bukhari 2931, Sahih Muslim 627, and Sahih Muslim 631: prayers delayed during the pressure of Khandaq.
- Sahih al-Bukhari 4106 and Sahih Muslim 1742: Allah’s help against the confederates through wind and unseen support.
- Sahih al-Bukhari 4117 and Sahih Muslim 1769: the move toward Banu Qurayzah after Khandaq.
- Sahih al-Bukhari 4563: “Allah is sufficient for us, and He is the best Disposer of affairs.”
- Seerah reports: Salman al-Farisi’s رضي الله عنه trench suggestion, coalition numbers, trench details, Nu'aym ibn Mas'ud رضي الله عنه, and crossing attempts are recorded in early Seerah and Maghazi works such as Ibn Hisham’s Al-Sirah al-Nabawiyyah, Ibn Sa'd’s Al-Tabaqat al-Kubra, and early Maghazi reports.
