Battle of Khandaq

From WikiShia
(Redirected from Battle of Ahzab)
Jump to: navigation, search
Battle of Khandaq
Formation of the forces in the Battle of Khandaq (Battle of the Trench)
Date 5/627
Location Medina
Coordination 1400 m. N.E of al-Masjid al-Nabawi
Result Victorious of Muslims
Cause Stratagem of Banu Nadir
Muslims Quraysh and its allies
The Prophet (s) Abu Sufyan
3000 10000
6 martyrs 8 were killed
Muslims, by the suggestion of Salman dug a Trench in the north of Medina, Qur'an mentioned this event in sura al-Baqara: 214, al-Nisa': 51-55, and al-Ahzab: 9-25.

The Battle of Khandaq (Arabic: غزوة الخندق, Battle of the Trench) or The Battle of Aḥzāb (Arabic: غزوة الأحزاب, Battle of the Confederates) took place in the fifth year of Hijra/627. It initially broke out by the stratagem of Banu Nadir tribe. Quraysh tribe became united with all its allies including Kafir (unbeliever) 'Arab tribes in order to eradicate Islam. The number of their soldiers was 10,000, yet Muslim army was only 3,000 soldiers. Banu Qurayzah tribe had promised to be impartial in case of war; nevertheless, they violated the contract and became confederate with the unbelievers. To take up arms against the unbelievers, Muslims dug trench around Medina, an idea from Salman al-Farsi. The war terminated by Muslim's victory and the unbeliever army had to withdraw.

During the battle, 'Amr b. 'Abd Wudd, eminent for his great valor and bravery, proceeded the trench along with some other warriors, and threw down the challenge that who would dare to fight with him. Muslims remained silently, while they were overwhelmed with panic. Ultimately, Imam 'Ali (a) volunteered and went for the challenge with the Prophet's consent. He succeeded to take 'Amr's life. This had such a huge positive impact on Muslim's spirit that led to them triumphing over the enemy. "'Ali's stroke was superior to any gene's or human's (thaqalayn) worship", said Prophet Muhammad (s).

Another Name

This war is also well-known as Ahzab (confederates), since Quraysh tribe got unified with other tribes to eradicate Islam.


The majority of historians believe the date of its occurrence is the fifth year of Hijra. There are different views about the exact month. Some sources believe it was Shawwal, and some others refer to Dhu l-Qa'da. In a hadith, it has been said that the prophet set off for the war on Thursday, 10th of Shawwal/March 7, and ended it on Saturday, first of Dhu l-Qa'da/ March 27, 627.


Being exiled by the Prophet (s) owing to their disloyalty, Banu Nadir tribe went to Khaybar and instigated other Jews to arrange a war against Muslims. This could be the chief cause of the war. After that, some Jews from Banu Nadir and Banu Wa'il such as; Huyayy b. Akhtab, Sallam b. Abi l-Huqayq, Kinana b. Rabi' b. Abi l-Huqayq, Hawdhat b. Qays al-Wa'ili, Abu 'Ammar al-Wa'ili, went to Mecca and encouraged Abu Sufyan and Quraysh to begin a war against Prophet Muhammad (s). Abu Sufyan accepted their plan with open arms, thus Jews and Quraysh got unified. As following plans, Jews mentioned earlier met Ghatafan tribe, led by 'Uyayna b. Hisn al-Fazari. They persuaded them to take part in the war by promising to provide them with one-year date. Then, they visited Banu Sulaym b. Mansur and convinced them as well.


The unbelievers army all together were 10,000 men. Four thousands of them along with 300 horses and 1,500 camels were from Quraysh tribe and its confederates. In some references, the number of them (Quraysh, Ghatafan, Banu Sulaym, Banu Asad, Banu Ashja', Banu Qurayzah, Banu Nadir, and other Jews) is said to be 24 thousands. The unity of the unbelievers and Jews in this war represents their determination to eliminate Islam. That is why, when Imam 'Ali (a) confronted 'Amr b. 'Abd Wad, the Prophet said: "The whole Islam has faced the whole shirk". Some sources believe the number of Muslims was only 3,000.

Suggestion to Dig Trench

Being informed about polytheists' determination by a supporter from Khuza'a tribe, the Prophet (s) asked for people's opinions about whether to stay in Medina and fight there, or leave the city and confront the polytheists out of the city. "Whenever we were in danger by enemy's horsemen in Iran, we dug trench all around us", said Salman al-Farsi. Having been conquered in the Battle of Uhud due to their opposition with Prophet's opinion (and leaving the city), people chose to stay in town and accepted Salman's suggestion to dig trench. Digging trench was not commonplace among 'Arabs up to that time, and it provoked amazement among both Muslims and the polytheists.

Digging Trench

The Prophet (s) ordered people to dig trench before them, having Mount Sal' behind. They had to start the job from Mudhad (a fort located in the West of Fath Mosque) and carry it on to Dhubab region and Mount Ratij (beside Mount Banu 'Ubayd, at the West of Bathan). The Prophet (s) specified 40 Dhira' (a measure unit) for every ten people, and made each tribe responsible for digging each part. It is said that Muhajirun were to dig trench from Ratij to Dhubab, and Ansar had to do so from Dhubab to Mount Banu 'Ubayd. Stimulating the Muslims, the Prophet (s) himself contributed to the work. He made doors for trench and the responsibility of guarding them lay with a person from each tribe.

Muslims borrowed many implements such as spade, pickaxe, axe, and basket from Banu Qurayza, who were Prophet's (s) confederate in that time. Allah sent some verses to the Prophet (s) about the pious men who did not cease working without the Prophet's approval, and also about hypocrites who were not dedicated to work and abandoned the job to visit their families without Prophet's permission.

While excavating the ground, Muslims came across an extremely impenetrable rock. The Prophet struck it three times. By each sparkle out of each stroke, the prophet foretold the blessing news of Muslim's future conquests in Syria, Yemen, and Iran.

Digging trench lasted for 6 days. Youngsters and adolescents took part in it as well.

Domiciles of Muslims and the Polytheists

Confederations (Ahzab) comprising of three armies by commander of Abu Sufyan arrived in Medina. Quraysh along with some tribes (Ahabish) and their confederate tribes such as Kinana and Tihama were domiciled in Ruma, between Jurf and Zaghaba. And Ghatafan tribe camped near Mount Uhud with their confederate tribes. The Prophet (s) and Muslims were domiciled in the foot of Mount Sal', and brought the women and children to the forts.

Banu Qurayza Treachery

The most difficult time for Muslims was when it was known that Banu Qurayza tribe, who had promised to be impartial in case of war, violated the contract and leaned towards the polytheists. Ka'b b. Asad al-Qurazi, the leader of Banu Qurayza, chose to be on the polytheists' side, despite his unwillingness at the beginning. The Prophet (s) sent the leaders of Aws and Khazraj tribes (in order: Sa'd b. Mu'adh and Sa'd b. 'Ubada) to make sure about the authenticity of this news. He asked them to inform him in a way that no one found out so that it would not put Muslims in low spirits. Banu Qurayza had the worst behavior with them with the most insulting words. They came back to the Prophet (s) and notified him by naming the two tribes 'Adal and Qara. What they meant by it was the remembrance of the treachery of these two tribes towards Khubayb b. 'Adi and his friends in Raji'.

Muslim's Tough Situation

Muslims feared very much, since they were nervous about their family condition inside Medina (situated at the back of their domicile), and they had to confront those enemy warriors passing the trench every now and then. The holy Qur'an depicted Muslim's fear and their suspicion about God's promises very plainly. The fear was so deep that Mu'attab b. Qushayr, a hypocrite, said that Muhammad promised us the conquest of Iran and Rome; however, no one dares to go out even to ease his nature.

Muslims guarded the trench in turn, day and night, enduring severe cold weather and hunger. Some miracles ascribed to the Prophet (s) about satisfying Muslim's hunger have been narrated. One time, there were so many attacks from the enemy that the Prophet didn't manage to say Noon and Afternoon prayers, and had to perform them later along with Sunset and Dusk prayer.

Some of the Muslims like Banu Haritha asked the Prophet (s) for the permission to leave, putting forward the excuse that their houses are unprotected and they worry about enemy's attacks or burglary. There have been some narrations about shooting arrows, hard fighting, and injuries from both sides such as Sa'd b. Mu'adh. Also, it has been said that Khalid b. Walid, 'Amr b. al-'As, and Abu Sufyan had some attacks to the Muslims army.

Banu Qurayza treachery, severe cold weather, famine, and starvation had put so much pressure on Muslim's shoulders. There was such a tough time that the Prophet stated to God: "O God! You want not to be worshiped". Qur'an has mentioned this through some verses.

Danger of Banu Qurayza

When the danger of a night attack to Medina center by Banu Qurayzah rose, the Prophet (s) made two groups of the companions responsible for guarding Muslim's houses. Since Muslims' anxiety was more about Banu Qurayza attack to women and children rather than about Quraysh attacks to themselves, they recited Takbir until morning. Once at night, two groups of Muslims encountered each other, shooting one another unintentionally. Afterwards, they applied a secret slogan to avoid similar plausible incidents. The slogan was: Ha Mim, La yunsarun (means the enemy will not conquer).

Imam 'Ali's Battle with 'Amr b. 'Abd Wudd

During the war, 'Amr b. 'Abd Wudd, a luminary prominent for his great valor, considered as equal as a thousand warriors in terms of being warlike and courageous, proceeded the narrow part of the trench along with some warriors. But they were impeded by Imam 'Ali (a) and some other Muslims. Having been injured in the Battle of Badr, thus being deprived of participating in the Battle of Uhud, 'Amr was fresh enough to throw down the challenge and call for an opponent. Even though Imam 'Ali (a) volunteered to fight with him, the Prophet (s) did not allow him, hoping that someone else would stand against him. No one became volunteer owing to their fear. As this condition lasted for quite a long time, 'Amr announced proudly that he got a sore throat because of calling constantly for a rival. Ultimately, Imam 'Ali (a) got ready to begin the combat with Prophet's permission. The Prophet (s) put his imama (turban) on 'Ali's head, gave his sword to him and sent him to the battle. Imam 'Ali (a) proceeded and told 'Amr either to become Muslim or to call off the combat. 'Amr refused both suggestions, therefore a very difficult battle took place. Imam 'Ali (a) warded Amr's stroke off by his shield, then took his life by a strong stroke, resulting in all his companion's escape. Imam 'Ali (a) recited Takbir right after his victory over 'Amr, then killed Nufayl b. 'Abd Allah, who was running away and was trapped while passing the trench.

Prophet's Hadiths about Imam 'Ali's Superiority

Imam 'Ali's action of killing 'Amr b. 'Abd Wudd helped Islam army significantly to be victorious over the polytheists. About it, the Prophet (s) said: " 'Ali's stroke was superior to any gene's or human's (Thaqalayn) worship." In another hadith he averred: "'Ali's combat with 'Amr is superior to all my followers' good deeds until the Day of Judgment". And also, while Imam 'Ali (a) and 'Amr were fighting, the Prophet (s) stated: "The whole Islam (or iman (faith)) has confronted the whole Kufr (or Shirk).

Muslim's Victory

Aside from Imam Ali's combat with 'Amr b. 'Abd Wudd, which resulted in enemy's defeat and escape, historians have referred to three other factors assisting Muslims in Battle of Khandaq.

  1. The important role of a person by the name of Nu'aym b. Mas'ud al-'Ashja'i, a member of Ghatafan tribe who became Muslim secretly and none of the polytheists knew about it. Nu'aym met the Prophet (s) covertly. He told Nu'aym to undermine the enemy and to arise disputes among them. Nu'aym asked the Prophet (s) for the permission to say whatever he wants to achieve this goal. The Prophet (s) allowed him and said: "War is deceit". Nu'aym b. Mas'ud met Banu Qurayza, whom he already had intercourse with. He recommended that they had better ask Quraysh and Ghatafan for hostages, on account that they had no worry about their houses being accessible, thus they could easily leave Banu Qurayza alone. Then, he visited Quraysh and Ghatafan and informed them about Banu Qurayza's regret and disloyalty. He told them Banu Qurayza had decided to take hostage from them and give the hostages up to Muhammad, and then establish peace between themselves and Muslims. He recommended that they not give any hostages to Banu Qurayza. Consequently, disputes were arisen among them.
  2. As al-Waqidi narrates, when the polytheists army arrived in Medina, there were no cultivation left, and people had already harvested their plantations a month before. As a result, the remaining fodder on the ground was not adequate for Quraysh and Ghatafan horses. Camels were about to die due to starvation and Medina ground was totally dry because of no rain.
  3. Ibn sa'd has told about the Prophet's prayer, its fulfillment, and divine assistance. The prophet prayed in a place later named as Ahzab Mosque, on Monday, Tuesday, and Wednesday: "O God! Make the confederates defeated and run-away". Finally his supplication was fulfilled on Wednesday between his Noon and Afternoon prayer. At a cold winter night, a terrible storm destroyed their belongings. Qur'an has mentioned this divine help.


Polytheists' defeat and withdrawal in the Battle of Khandaq paralyzed them in a way that it was impossible for them to rearrange their army and devise another scheme for a fight. Moreover, it built up the newly-established Islamic government of Medina. After the death of 'Amr b. 'Abd Wudd by Imam 'Ali (a) or after the polytheists' defeat which occurred two or three days after Amr's death, the Prophet of Islam said: "We will make war against them afterwards, and they will not go to war with us". The same as what the Prophet (s) said happened until God released Mecca by his Prophet.


The blockade of Muslims kept on for 15 days. Except for the siege and shooting, no fighting took place during this period. The Prophet (s) had selected Ibn Maktum as his stand-in in Medina.

Muslims had 6 martyrs during this war, and 8 people of polytheists were killed. These verses of Holy Qur'an point to Battle of Khandaq: 214th verse of Sura al-Baqara[Note 1], 51-55th verses of Sura al-Nisa', and 9-25th verses of Sura al-Ahzab.

Constructions of Some Mosques at War Place

On Mount Dhubab (well-known as Jabal al-Raya), about 1400 meters away the Northwest of al-Masjid al-Nabawi and 150 meters far from the North of Mount Sal', there is a mosque which recently was renewed and repaired, so-called as Masjid al-Raya. It is the area where the Prophet (s) supervised digging trench from, had put up his tent and said prayers.

Other mosques by the names of Masjid al-Fath (also known as Masjid al-Ahzab or Masjid al-A'la) were built on Mount Sal' around 700 meters away al-Masjid al-Nabawi, where the Prophet's tent had been put up, a place in which he said prayers, monitored everything, and received God's blessing promise of victory over the polytheists. This mosque along with some other mosques on the foot of Mount Sal' are famous as Masajid al-Fath and al-Masajid al-Sab'a (the seven mosques). In 1424/2003-2004, a very large mosque named Masjid al-Khandaq was constructed, having some of the seven mosques inside.

Mosque of Fatima al-Zahra (a) is one of the seven mosques. Unfortunately, it has been shut off by some cement blocks for a long time.


  1. Do you suppose that you shall enter paradise though there has not yet come to you the like of [what befell]those who went before you? Stress and distress befell them and they were convulsed until the apostle and the faithful who were with him said, ‘When will Allah’s help [come]?’ Look! Allah’s help is indeed near!

See Also

External Links

  • The material for writing this article is mainly taken from غزوه خندق in Farsi WikiShia.