Year 5 after the Hijrah · 5 AH (627 CE) · year 18 of prophethood

The trench and Banū Qurayẓah

Ten thousand besiege and go home with nothing.

His age
57
Where
Madinah
Counted as
5 AH

The account

This lesson follows ar-Raḥīq al-Makhtūm's account of the fifth Madinan year: the Battle of the Confederates, also called the Battle of the Trench, the siege of Banū Qurayẓah that followed it, and the mission against Abū Rāfiʿ at the end of the year. Where a detail rests on a historical report rather than an authenticated hadith, that is said plainly, so the firmer reports and the weaker ones are not treated as equally certain.

After Banū an-Naḍīr were exiled to Khaybar, the book says their leaders watched the fighting between the Muslims and Quraysh and hoped it would go against the Muslims. When it did not, about twenty of their chiefs, with leading men of Banū an-Naḍīr, went to Makkah and urged Quraysh to attack Madinah, promising full support. Quraysh agreed. The same delegation then went to Ghaṭafān, who also agreed, and toured other tribes to win them over.

Quraysh, Kinānah and their allies from Tihāmah gathered four thousand men under Abū Sufyān. From the east came Banū Sulaym, Ghaṭafān, Banū Murrah and others. They met near Madinah at an agreed time: about ten thousand fighters, more than all the Muslims of Madinah put together, including women, children and the elderly. The book notes that a surprise attack could have destroyed the Muslims, but scouts brought word of the army's movement in time.

The Prophet ﷺ called his advisers together to plan the city's defence. Salmān رضي الله عنه al-Fārisī said that in Persia, when they feared a siege, they dug trenches to protect themselves. It was a method the Arabs did not use, and the Prophet ﷺ ordered it at once. Each group of ten men was given forty arm-lengths to dig. Madinah's other sides were protected by hills and palm orchards, so the trench was dug across the open northern side, where the army would have to come.

The Muslims worked through severe hunger. The Prophet ﷺ worked with them, encouraging them and reminding them of the reward of the Hereafter. Sahl ibn Saʿd رضي الله عنه described the men digging while others carried the earth away on their backs. They dug by day and went home in the evening, for several days, until the trench was finished before the army arrived and camped at al-Asyāl and near Uḥud.

Jābir ibn ʿAbdullāh رضي الله عنهما saw how hungry the Prophet ﷺ was, slaughtered a small sheep and prepared some barley, and quietly invited him with a few Companions. The Prophet ﷺ called everyone digging the trench, about a thousand people, and all of them ate until they were full, while the meat and the dough still being baked seemed not to have gone down. This is reported in Ṣaḥīḥ al-Bukhārī. The book also records a woman bringing a handful of dates that went on increasing on his cloak until everyone had eaten.

When a hard rock stopped the digging, the Prophet ﷺ took the pickaxe himself. In a report from al-Barāʾ ibn ʿĀzib رضي الله عنه, recorded by Aḥmad and an-Nasāʾī, he struck it three times, saying Allāhu akbar each time. With the first strike he said he had been given the keys of Syria and could see its palaces; with the second, Persia and the white palace of al-Madāʾin; with the third, as the rock broke apart, Yemen and the gates of Ṣanʿāʾ. At that moment the Muslims were hungry and surrounded.

When the believers saw the confederate army, Sūrat al-Aḥzāb says they said, 'This is what Allah and His Messenger promised us,' and it only increased their faith and submission. That is 33:22. Three thousand Muslims took position with Mount Salʿ behind them and the trench in front of them.

The confederates were surprised by the trench. Unable to cross it, they set up a siege and rode along it looking for a weak point, while the Muslims kept them back with arrows. A small group of Quraysh horsemen led by ʿAmr ibn ʿAbd Wudd, ʿIkrimah ibn Abī Jahl and Ḍirār ibn al-Khaṭṭāb found a narrow place and crossed into the marshy ground between the trench and Mount Salʿ. ʿAmr challenged the Muslims to single combat. ʿAlī ibn Abī Ṭālib رضي الله عنه went out to him and killed him, and the others fled back. Later attempts to cross also failed.

The fighting kept the Muslims so busy that some prayers were delayed. Jābir رضي الله عنه narrated in Ṣaḥīḥ al-Bukhārī that ʿUmar رضي الله عنه came at sunset saying he had not yet prayed ʿAṣr, and the Prophet ﷺ said that he had not prayed it either. He made wuḍūʾ at Buṭḥān, prayed ʿAṣr after sunset and then Maghrib. He prayed against the confederates that Allah fill their houses and graves with fire for keeping them from the middle prayer. Reports in Aḥmad and ash-Shāfiʿī mention several prayers delayed and then prayed together, which suggests this happened on more than one day.

Because the trench kept the two sides apart, there was little direct fighting. The book gives the dead as six Muslims and ten of the confederates. Among the wounded was Saʿd ibn Muʿādh رضي الله عنه, chief of al-Aws, struck by an arrow in a main vein of his arm. He prayed that if more fighting with Quraysh remained, Allah would keep him alive for it, and that he would not die until he had seen the matter of Banū Qurayẓah settled.

Meanwhile, Ḥuyayy ibn Akhṭab of Banū an-Naḍīr went to Kaʿb ibn Asad, chief of Banū Qurayẓah, who had an agreement to support the Muslims in war. Kaʿb refused at first. Ḥuyayy described Quraysh and Ghaṭafān as united in wanting to end the Muslims, and promised to stay in Kaʿb's fortress and share his fate if they withdrew. In the end Kaʿb agreed and broke the agreement.

Ibn Isḥāq reports that Ṣafiyyah bint ʿAbd al-Muṭṭalib رضي الله عنها, the Prophet's ﷺ aunt, was in a fortified house with Ḥassān ibn Thābit رضي الله عنه, women and children, while the men were at the trench. A man of Banū Qurayẓah was seen going round it. She asked Ḥassān رضي الله عنه to go down and deal with him, and when he did not, she took a wooden post, went down and killed the man herself. The book says this made the attackers believe the houses were guarded, and they did not try again, though Banū Qurayẓah went on supplying the besiegers.

The Prophet ﷺ sent Saʿd ibn Muʿādh, Saʿd ibn ʿUbādah, ʿAbdullāh ibn Rawāḥah and Khawwāt ibn Jubayr رضي الله عنهم to find out whether the news of the broken agreement was true, telling them to speak in a way that would not frighten the people if it was. They found it true: Banū Qurayẓah openly said there was no agreement with him. Now the Muslims had an army in front of them, Banū Qurayẓah behind them, and their families in between. Sūrat al-Aḥzāb describes eyes turning wild, hearts reaching the throats, and the believers shaken with a severe shaking, in 33:10–11.

The hypocrites mocked the promise of Persia and Rome, saying that Allah and His Messenger had promised them nothing but delusion. Some called on the people of Yathrib to go home, and some asked to leave, saying their houses were exposed, though they were not; Allah says they only wanted to run away. These words are recorded in 33:12–13.

The Prophet ﷺ wrapped himself in his cloak and thought about the treachery of Banū Qurayẓah, then rose and said, 'Allāhu akbar. Good news, Muslims, of Allah's victory and help.' He sent men back to guard the women and children in the city. He also considered offering the chiefs of Ghaṭafān a third of Madinah's fruit harvest to break up the alliance, and asked Saʿd ibn Muʿādh and Saʿd ibn ʿUbādah رضي الله عنهما. They said that if it was Allah's command they would obey, but if it was a plan for their protection, they did not need it: they had known these tribes in their days of idol worship, and what the tribes wanted was not their fruit but to destroy them. Now that Allah had honoured them with Islam, they would answer with the sword. The Prophet ﷺ said he had only meant to protect them when all the Arabs had joined against them, and he left the idea.

Then Nuʿaym ibn Masʿūd رضي الله عنه of Ghaṭafān came to the Prophet ﷺ secretly, said he had become Muslim without his people knowing, and asked how he could help. The Prophet ﷺ told him to do whatever he could to weaken the enemy. Nuʿaym رضي الله عنه told Banū Qurayẓah not to fight unless Quraysh gave them hostages, because Quraysh might leave and abandon them to the Muslims. He told Quraysh that Banū Qurayẓah regretted breaking their agreement and planned to hand Quraysh's hostages to the Muslims. He said the same to Ghaṭafān.

On a Saturday eve in Shawwāl, Quraysh and Ghaṭafān sent word to Banū Qurayẓah to join the attack. Banū Qurayẓah replied that they would not fight on the Sabbath and wanted hostages first. To Quraysh and Ghaṭafān this proved Nuʿaym's رضي الله عنه warning, and they refused. The alliance now distrusted itself.

The Muslims prayed for the safety of their homes and families. The Prophet ﷺ prayed, as recorded in Ṣaḥīḥ al-Bukhārī: 'O Allah, Revealer of the Book, swift in reckoning, defeat the confederates.' Allah sent a wind, cold and rain against them. Their tents were blown down and their cooking pots overturned.

On that cold night the Prophet ﷺ sent Ḥudhayfah ibn al-Yamān رضي الله عنه to bring news of the enemy. His account is in Ṣaḥīḥ Muslim. He found them preparing to leave, having failed. Allah spared the Muslims a battle against an army far larger than their own. The book dates the siege from Shawwāl into Dhū al-Qaʿdah of the fifth year, a little over a month: a test of nerve more than of losses. After it the Prophet ﷺ said that from then on the Muslims would go out to them, and Quraysh would no longer come to attack them.

On the day he returned from the trench, while he was washing in the house of Umm Salamah رضي الله عنها, Jibrīl عليه السلام came and told him not to put down his weapons but to go to Banū Qurayẓah. The Prophet ﷺ had it announced, left Ibn Umm Maktūm رضي الله عنه in charge of Madinah, and gave the banner to ʿAlī رضي الله عنه. He followed with three thousand foot soldiers and thirty horsemen. On the way, ʿAṣr came: some Companions waited to pray it until they arrived, as he had told them, and others prayed it on time. He blamed neither group. This is in Ṣaḥīḥ al-Bukhārī.

The Muslims besieged the fortresses of Banū Qurayẓah. Their chief Kaʿb ibn Asad offered his people three choices: to accept Islam, since what they had read in their books confirmed his prophethood; to kill their own families and fight to the death; or to attack on the Sabbath, when no attack was expected. They refused all three. They asked for Abū Lubābah رضي الله عنه, who had been their ally, to advise them. Moved by their weeping, he pointed to his throat, signalling death. He realised at once that he had betrayed a trust, went straight to the mosque in Madinah and tied himself to a pillar, saying only the Prophet ﷺ could untie him. The Prophet ﷺ said that had Abū Lubābah رضي الله عنه come to him he would have asked forgiveness for him, but now it was for Allah to forgive him.

Banū Qurayẓah had food, water and strong fortresses, while the Muslims were outside in the cold and hungry. But fear had entered the besieged, and when ʿAlī رضي الله عنه and az-Zubayr ibn al-ʿAwwām رضي الله عنه advanced, ʿAlī رضي الله عنه swearing to take the fortress or die like Ḥamzah رضي الله عنه, they agreed to accept the Prophet's ﷺ judgement. The men were bound under the supervision of Muḥammad ibn Maslamah رضي الله عنه and the women and children kept apart. Al-Aws, their old allies, asked for leniency, and the Prophet ﷺ proposed that Saʿd ibn Muʿādh رضي الله عنه, their former ally and a man of al-Aws, should decide, and they accepted.

Saʿd رضي الله عنه was brought on a donkey because of his wound. On the way men of his tribe asked him to be gentle with his old allies. He said, 'The time has come for Saʿd not to fear the blame of anyone where Allah is concerned.' He ruled that the fighting men be killed, the women and children taken captive and the property divided. The Prophet ﷺ said he had judged by Allah's judgement; this is reported in Ṣaḥīḥ al-Bukhārī. The book gives the number executed as between six and seven hundred, and lists the weapons found: fifteen hundred swords, two thousand spears, three hundred coats of armour and five hundred shields.

Ḥuyayy ibn Akhṭab, who had entered the fortress with Banū Qurayẓah as he had promised, was brought with his hands tied and said he did not regret his hostility, but that Allah's command must be carried out, and he was executed. Only one woman was executed, because she had killed the Muslim Khallād ibn Suwayd رضي الله عنه by dropping a millstone on him. A few men accepted Islam, and they kept their lives, families and property. The spoils were divided after the fifth was set aside: three shares for a horseman and one for a man on foot.

Among the captives was Rayḥānah bint ʿAmr رضي الله عنها. Ar-Raḥīq al-Makhtūm says the Prophet ﷺ freed and married her in the sixth year and that she died after the Farewell Pilgrimage and was buried in al-Baqīʿ. Other early reports say she remained under his care without marriage, so this detail is not certain.

Abū Lubābah رضي الله عنه stayed tied to the pillar for six nights, his wife untying him for each prayer. Then, the book says, a verse was revealed telling of Allah's forgiveness for him. People rushed to untie him, but he insisted that only the Prophet ﷺ should do it, and he did, just before Fajr. The siege had lasted twenty-five nights, in Dhū al-Qaʿdah of the fifth year, and Sūrat al-Aḥzāb was revealed about the believers, the hypocrites and the broken agreement.

Saʿd's رضي الله عنه prayer was answered. ʿĀʾishah رضي الله عنها narrated that his wound burst open in the tent the Prophet ﷺ had set up for him in the mosque so he could visit him easily, and the blood flowed until it reached the next tent, of Banū Ghifār, and he died. Jābir رضي الله عنه narrated that the Prophet ﷺ said the Throne of the Most Merciful shook at the death of Saʿd ibn Muʿādh; this is in Ṣaḥīḥ al-Bukhārī. At-Tirmidhī records that when the hypocrites said his body was light, the Prophet ﷺ said the angels were carrying him.

At the end of the year, the book places the killing of Salām ibn Abī al-Ḥuqayq, known as Abū Rāfiʿ, in Khaybar. He had helped gather and pay for the confederate army and spoke against the Prophet ﷺ. Al-Khazraj asked permission to deal with him, as al-Aws had dealt with Kaʿb ibn al-Ashraf, and the Prophet ﷺ allowed it on condition that no woman or child be harmed. Five men led by ʿAbdullāh ibn ʿAtīk رضي الله عنه went. ʿAbdullāh رضي الله عنه entered the fortress at nightfall, reached Abū Rāfiʿ in the dark and killed him. Leaving, he fell and broke his leg, and waited until he heard the death announced. Ṣaḥīḥ al-Bukhārī reports that the Prophet ﷺ wiped his leg and it was as if it had never been hurt. The book dates it to Dhū al-Qaʿdah or Dhū al-Ḥijjah of the fifth year.

Taken together, the fifth year shows how the Muslims came through the greatest danger they had yet faced: careful consultation, accepting a good idea from Persia, the Prophet ﷺ sharing hunger and labour, and patience under siege. The victory came without a pitched battle, through division among the enemy and a wind sent by Allah. It also shows the cost of breaking an agreement in wartime, and that from then on Madinah was no longer waiting to be attacked.

The Qur'an alongside this year

  • 33. Al-Aḥzāb — Al-Aḥzāb — the siege, the hypocrites, and the household.

People in this year

Answer from memory