Exit Focus Mode

When the Earth Closed In: The Coalition Marches on Madinah

The wind carries the scent of turned earth and cold stone. Across a narrow stretch of open ground north of Madinah, hundreds of men drive iron and wood into soil that has never known a trench. Their hands crack and bleed. Their stomachs are empty. Dust coats their beards and fills the creases of their eyes. And somewhere beyond the volcanic ridges, ten thousand warriors are marching toward them — the largest army the Arabian Peninsula has ever assembled under a single cause.

It is Shawwal — or perhaps Dhul Qa’dah — of the fifth year after the Hijrah, and the Muslim community faces annihilation.

The Architects of Destruction

The seeds of this crisis were planted not in Mecca but in Khaybar, barely two hours’ ride from Madinah. The Banu Nadir, expelled from the city after their brazen attempt to assassinate the Prophet Muhammad (peace be upon him) by rolling a boulder onto him from their fortress walls, had settled among their coreligionists at the great oasis. But exile had not extinguished their ambitions. They had left behind acres of date groves, entire plains of cultivated land — wealth worth, in modern terms, millions — and carried away only what their camels could bear. They had even stripped the doors from their homes.

Now, impoverished and seething, the leaders of the Banu Nadir conceived a plan of breathtaking scope. They would not merely strike back at the Muslims; they would orchestrate the destruction of the entire community by assembling a coalition the likes of which Arabia had never seen.

A high-level delegation — Salam ibn Abi al-Huqayq, Huyay ibn Akhtab (father of the future Safiyyah, whom the Prophet would later marry), and the other senior figures of the tribe — traveled south to Mecca. Their proposition to the Quraysh was simple: a coordinated, simultaneous assault on Madinah, funded by the wealth of Khaybar.

Abu Sufyan ibn Harb, the de facto leader of the Quraysh since the losses at Badr, was astonished. He understood the theological paradox: the Quraysh and the Yahud of Khaybar worshipped differently, believed differently, lived differently. From the Qurayshi perspective, Islam and Judaism looked remarkably similar — both monotheistic, both rooted in scripture, both governed by detailed sacred law.

“Whose religion is closer to yours,” Abu Sufyan asked the delegation, “our religion or his?”

The answer the Banu Nadir gave would echo through history. They declared that the idol-worshipping Quraysh were more rightly guided than Muhammad and his companions. It was a statement of pure political expedience — a betrayal of their own scripture to secure a military alliance.

“Have you not seen those who were given a portion of the Book? They believe in superstition and false objects of worship and say about the disbelievers, ‘These are better guided than the believers as to the way.’” — An-Nisa (4:51)

Allah exposed their words in the Quran itself, a verse Muslims recite to this day — a permanent record of the moment when the People of the Book chose tribal revenge over theological integrity.

Scholarly Note

The dating of the Battle of Khandaq is a matter of scholarly debate. Imam al-Bukhari, Ibn Shihab al-Zuhri, Imam al-Nawawi, and Ibn Hazm placed it in the fourth year of Hijrah, based on Ibn Umar’s narration that he was rejected from Uhud at age fourteen and accepted at Khandaq at fifteen — suggesting only one year separated the two battles. However, the vast majority of seerah specialists — Ibn Ishaq, Ibn Hisham, al-Tabari, Ibn al-Qayyim, and others — place it in Shawwal of the fifth year, arguing that the overall chronology of events (including the death of Sa’d ibn Mu’adh and the intervening expeditions) makes the fourth year impossible. Al-Bayhaqi attempted to reconcile the views by suggesting Ibn Umar was at the very beginning of fourteen at Uhud and the very end of fifteen at Khandaq, though this stretches the narration. Al-Waqidi and Ibn Sa’d specified Dhul Qa’dah of the fifth year, a minor variation of one to two months. The scholarly consensus favors the fifth year.

The Coalition Takes Shape

The Quraysh needed little convincing. For four years, the Muslim disruption of the Syrian trade route — the economic lifeblood described in the Quran as the rihlat al-shita’ wal-sayf, the winter and summer caravans — had strangled their commerce. Uhud had been indecisive. The promised rematch at Badr al-Sughra had ended in embarrassment when Abu Sufyan’s forces turned back with excuses. The Quraysh feared another direct confrontation with Muslim fighters whose fearlessness they had witnessed firsthand. But now the Banu Nadir were offering money, supplies, and — critically — the vast stores of Khaybar’s dates, the perfect campaign ration for desert warfare.

With the southern alliance secured, the Banu Nadir turned north to the Ghatafan, the largest and most formidable Bedouin confederation in the region. The Ghatafan were known for their wildness, their lack of urban refinement, and their martial ferocity. They had no personal stake in the trade route dispute, so the Banu Nadir offered the only currency that would move them: half the annual produce of Khaybar for a single campaign. It was a fortune — and it transformed the Ghatafan into hired mercenaries, warriors fighting not for a cause but for a payday.

The Quraysh then dispatched their own emissaries to the smaller tribes affected by the trade disruption — the Banu Asad, the Banu Sulaym, the Banu Murra, the Ashja’, the Banu Kinana. Each contributed what they could: weapons, armor, horses, fighting men, even slaves pressed into military service. The Banu Fazara, led by their chieftain Uyayna ibn Hisan, joined the coalition with a thousand men.

“When they came at you from above you and from below you, and when eyes shifted in fear, and hearts reached the throats, and you assumed about Allah various assumptions — there the believers were tested and shaken with a severe shaking.” — Al-Ahzab (33:10-11)

Ibn Ishaq estimates the total force at approximately ten thousand men. Even if the number is somewhat lower, the disparity was staggering: Madinah could field no more than two thousand five hundred fighting men. The Muslims were outnumbered at least three or four to one.

The Leaders of the Ahzab: A Study in Contrasts

The coalition that marched on Madinah was led by men whose later trajectories reveal the full spectrum of human response to Islam.

Abu Sufyan ibn Harb (Sakhr ibn Harb ibn Umayyah), born a decade before the Prophet, was the overall commander — as he had been at Uhud. He was the most capable military mind among the Quraysh and, crucially, a man who never descended to the vulgar cruelty of an Abu Jahl. His enmity was real but dignified. He would not accept Islam until the Conquest of Mecca, and even then his conversion was initially pragmatic. But when the Prophet gave him an extraordinary share of the spoils at Hunayn, Abu Sufyan was moved to declare: “By Allah, you are the most generous person I have ever seen. I fought you and you remained a noble enemy; now that I have come to peace with you, you are the most noble friend.” Islam eventually entered his heart, and his son Mu’awiyah would found the Umayyad dynasty.

Uyayna ibn Hisan of the Banu Fazara represented the opposite extreme. He was known as one of the ajlaf — the crude, uncouth Bedouins — a man of such brazenness that he once barged into the Prophet’s home without permission and, upon seeing Aisha (may Allah be pleased with her), offered to trade one of his own wives for her. The Prophet described him privately as “the fool who is obeyed among his people.” His path to tribal leadership was itself shocking: his father Hisan, suffering from a terrible illness, had asked each of his ten sons to end his pain. Nine refused. Uyayna agreed — in exchange for the chieftainship. His later acceptance of Islam proved hollow; he joined the false prophet Tulayhah during the Ridda Wars and, when captured by Khalid ibn al-Walid (may Allah be pleased with him) and brought to Madinah in chains, openly admitted he had never truly believed.

Tulayhah of the Banu Asad, who brought seven hundred men to the coalition, would undergo the most dramatic transformation of all. After the Prophet’s death, he declared himself a prophet, invented his own “Quran,” and led a rebellion. Khalid ibn al-Walid crushed his forces, and Tulayhah fled to Syria — where, remarkably, he experienced a genuine conversion. He returned to Madinah repentant, was forgiven by Abu Bakr al-Siddiq (may Allah be pleased with him), and spent the rest of his life seeking martyrdom to atone for his apostasy. He died fighting bravely at the Battle of Qadisiyyah against the Persians, and it is hoped that his sincere repentance was accepted.

These three men — the dignified enemy who found faith, the opportunist who never did, and the apostate who found redemption through repentance — together illustrate a profound truth: that guidance is ultimately in the hands of Allah alone.

A Persian Idea on Arabian Soil

When the intelligence reached Madinah — and ten thousand men cannot march across Arabia in secret — the Prophet convened his companions in the mosque, as was his practice before every major engagement, from Badr to Uhud. He laid out the situation plainly and asked: What do you think should be done?

The silence that followed was not born of cowardice but of mathematics. What can you do when ten thousand warriors are bearing down on your city? The options were grim. Fight in the open and be overwhelmed. Retreat into homes and be besieged piecemeal. There was no obvious answer.

Then an elderly voice spoke — a voice that carried the accent of Persia, the memory of Zoroastrian fire temples and Christian monasteries, the wisdom of a man who had spent a lifetime searching for truth across the breadth of the known world. Salman al-Farisi (may Allah be pleased with him), participating in his first battle after years of slavery, proposed something no Arab had ever conceived: dig a trench.

In Persia, he explained, armies defended cities by excavating deep ditches that cavalry and infantry could not cross. The tactic was unknown in Arabia, where warfare meant open charges across desert plains. But Salman had seen it work.

The Prophet accepted the idea immediately. And in that acceptance lies a principle that would define Islamic civilization for centuries to come: openness to beneficial knowledge regardless of its origin.

Scholarly Note

The Prophet’s adoption of the Persian trench tactic exemplifies a broader pattern in his practice. He also adopted the use of a signet ring for official correspondence after being told that foreign rulers would not accept unsealed letters — a Roman and Persian diplomatic custom. Similarly, he initially considered prohibiting ghila (conceiving while a woman is still breastfeeding) but changed his position after observing that the Romans and Persians practiced it without harm to their children. As recorded in various hadith collections, the principle was clear: in matters of worldly benefit, technology, and practical knowledge, Islam draws freely from all cultures. The restriction on innovation (bid’ah) applies to matters of worship and theology, not to the sciences of this world. The saying “Wisdom is the lost property of the believer; he picks it up wherever he finds it” — whether authenticated as a hadith or recognized as a maxim of the early Muslims — captures this ethos precisely.

Digging in the Dark

The Prophet assigned ten men to every section of the trench. Modern scholars who have studied the terrain of Madinah — including Sheikh Safi al-Rahman al-Mubarakpuri, who spent a decade researching on site — estimate the trench was approximately two kilometers long, roughly thirteen feet wide, and seven to nine arm-lengths deep.

Why only two kilometers? Because Madinah was naturally defended on most sides. To the east and west lay the harras — vast fields of volcanic rock, the remnants of ancient eruptions, stretching for miles in jagged, impassable formations where no army could march. To the south, dense date palm plantations created a natural barrier that ten thousand men with horses, camels, and supply trains could not penetrate. The only vulnerable approach was a stretch of open ground to the north, and it was here that the trench was dug.

The irony was devastating: the enemy’s overwhelming numbers, their greatest advantage, became their greatest constraint. Ten men could slip through date groves. Ten thousand could not.

The construction took between six and fourteen days — Ibn Sa’d reports six, other sources suggest up to fifteen. The urgency was absolute. The Sahaba worked day and night, in the cold of winter, with no mechanical tools and few slaves to assist them. They were already hungry before they began; the siege conditions that the trench would create had already started to bite.

And the Prophet dug alongside them.

Al-Bara’ ibn ‘Azib (may Allah be pleased with him) narrates: “I saw the Prophet on the day of Khandaq carrying dust until his chest hair was completely covered with it.” The Prophet had removed his upper garment and was sweating in the trenches like every other man, chanting poetry to keep rhythm and morale alive. Anas ibn Malik (may Allah be pleased with him), a young boy at the time, recalled the scene decades later: the Prophet went out to the trenches where the Muhajirun and Ansar were digging on a freezing evening. “We had no slaves to help us,” Anas explained to a later generation that had grown wealthy.

When the Prophet saw the exhaustion and hunger etched into their faces, he raised his hands:

“O Allah, there is no good except the good of the Hereafter, so have mercy on the Ansar and the Muhajirun.”

And they called back to him in verse, pledging their oath to jihad for as long as they lived.

The Rock That Shattered Into Prophecy

During the digging, the Sahaba struck a massive stone embedded directly in the line the Prophet had drawn for the trench. One after another, they hacked at it with their axes, but it would not break. Some suggested simply going around it, but others insisted on consulting the Prophet first — he had drawn the line, and they would not deviate without his permission.

When told, the Prophet descended into the trench himself and asked for the axe. He struck the stone once, saying Bismillah, Allahu Akbar, and one-third of it crumbled. “Allahu Akbar!” he declared. “I have been given the keys to Syria. By Allah, I can see its red castles from where I stand.”

He struck again. Another third shattered. “Allahu Akbar! I have been given the keys to Persia. I can see the white pillars of Mada’in.” He was describing Ctesiphon, the capital of the Sassanid Empire — a city he had never seen, thousands of miles away.

The third strike destroyed what remained. “Allahu Akbar! I have been given the keys to Yemen. I can see the gates of Sana’a from this very place.”

Within a generation, every one of these prophecies would be fulfilled. Syria fell in the final days of Abu Bakr’s caliphate and the opening of Umar’s. Persia collapsed at Qadisiyyah. Yemen submitted during the Prophet’s own lifetime and was fully incorporated under the Rightly Guided Caliphs. A man standing in a ditch, starving, outnumbered, with the largest army in Arabian history bearing down on his city, calmly announced the conquest of three civilizations — and history proved him right.

It was during this same labor that the Prophet saw Ammar ibn Yasir (may Allah be pleased with him) — that son of the first martyrs of Islam — doing double the work of everyone else, covered in dust and fatigue. The Prophet looked at him with tenderness and sorrow and said, as recorded in multiple hadith collections:

“May Allah have mercy on you, O Ammar. The transgressing group will kill you.”

The prophecy would be fulfilled decades later, during the Battle of Siffin, when Ammar, fighting on the side of Ali ibn Abi Talib (may Allah be pleased with him), was struck by an arrow from the forces of Mu’awiyah ibn Abi Sufyan (may Allah be pleased with him).

Scholarly Note

The hadith about Ammar — “the transgressing group (al-fi’ah al-baghiyah) will kill you” — is reported in multiple collections. Scholars differ on whether this prophecy was first uttered during the construction of the Prophet’s Mosque in Madinah or during the digging of the Khandaq, as narrations exist for both occasions. Some scholars reconcile this by suggesting the statement was made twice. Regarding the term al-fi’ah al-baghiyah, it is significant that the Prophet did not call them disbelievers or evil-doers, but rather a group that had transgressed — stepped outside the bounds of legitimate authority. The mainstream Sunni position holds that Mu’awiyah made an ijtihad (independent judgment) that was incorrect, while Ali was closer to the truth, and that Allah will forgive Mu’awiyah for his sincere, if mistaken, reasoning.

The Fortress and the Fifth Column

Even as the trench took shape, the Prophet was thinking several moves ahead. One of his first commands, unprompted by any advisor, was to send all the women, children, elderly, and infirm to the fortress of Al-Fari’ah — a stronghold belonging to the Banu Harithah of the Ansar, who had learned the art of fortress-building from their Jewish neighbors over centuries of coexistence. It was the largest and most secure fortification the Ansar possessed.

The reason for this precaution was the Banu Qurayza.

Of the three major Jewish tribes that had once inhabited Madinah, two had already been expelled — the Banu Qaynuqa and the Banu Nadir. Each time, the Prophet had renewed the treaty with the remaining tribes. Each time, they had sworn fresh oaths. The Banu Qurayza had now promised loyalty three separate times: in the original Constitution of Madinah, after the expulsion of the Banu Qaynuqa, and again when the Prophet personally visited them before moving against the Banu Nadir, offering them the choice to reaffirm or leave peacefully. They had sworn by God that they would honor the covenant.

But the Prophet understood human nature. With every fighting man stationed at the trench, the interior of Madinah would be virtually undefended. If the Banu Qurayza turned — if they became a fifth column — the women and children would be exposed to slaughter, and the Muslim position would become untenable: enemies outside the trench, enemies within.

Among those sent to Al-Fari’ah was a four-year-old boy named Abdullah ibn al-Zubayr (may Allah be pleased with him) — born at Quba on the very day the Prophet arrived in Madinah, the first child of the Muhajirun, whose birth had been taken as a joyful omen. He would later narrate what he witnessed as a child in that fortress, memories that illuminate one of the most remarkable episodes of the siege.

The Treachery

The blow fell when Huyay ibn Akhtab, the chieftain of the Banu Nadir who had orchestrated the entire coalition, slipped back into Madinah. The trench could stop an army; it could not stop one man who knew every alley and passage of the city where he had been born and raised. He made his way to the fortress of the Banu Qurayza and sat with their leader, Ka’b ibn Asad al-Qurazi.

Ka’b initially resisted. He knew the weight of three broken oaths. But Huyay knew his own people. He promised immunity, protection, precise coordination with the attacking forces, and a share of the spoils. He pressed and pressed until Ka’b agreed to abandon the treaty.

It was Zubayr ibn al-Awwam (may Allah be pleased with him) who volunteered to confirm the intelligence. The Prophet had expressed his fears, asking who would go and investigate. Zubayr stepped forward alone — a single man venturing into potentially hostile territory. When he returned with confirmation, the Prophet uttered the famous words recorded in multiple collections:

“Every prophet has a disciple (hawari), and my disciple is Zubayr ibn al-Awwam.”

But a spy’s report, however brave, was not sufficient for action. The Prophet sent four Ansari leaders who had pre-Islamic ties with the Banu Qurayza to confront them directly. They returned with the worst possible news: evasive answers, broken commitments, the unmistakable stench of betrayal.

The Muslim position was now catastrophic. Ten thousand warriors camped outside the trench. At least two thousand members of the Banu Qurayza inside the city, with their own fortress, their own weapons, and direct access to Al-Fari’ah where the women and children sheltered. The Quran captures the terror of that moment with devastating precision: hearts in throats, eyes glazed with fear, the believers shaken to their very core.

And yet, when the news was confirmed, the Prophet’s response defied every expectation. He said: “Allahu Akbar! Abshiru!” — God is Greatest! Rejoice! As if the collapse of the last internal alliance was not a death sentence but a liberation, the final clarification of who stood where, the removal of the last ambiguity before God’s help would descend.

The army split its already thin forces. Zayd ibn Harithah and Salama ibn al-Aslam (may Allah be pleased with them) were dispatched with a contingent to monitor the Banu Qurayza and protect the fortress. Patrols marched the length of the trench all night, crying Allahu Akbar into the darkness to create the impression of overwhelming numbers. Umm Salamah (may Allah be pleased with her) would later say that of all the battles she witnessed with the Prophet — al-Muraysi’, Khaybar, Hudaybiyyah, the Conquest of Mecca, Hunayn — none was more terrifying or exhausting than Khandaq.

Even the Prophet himself took patrol shifts, standing guard at a section of the trench through the freezing night. Aisha (may Allah be pleased with her), who had insisted on staying in the Prophet’s tent rather than going to Al-Fari’ah, recalled hearing the clink of armor in the darkness one night. The Prophet called out: “Who is there?” It was Sa’d ibn Abi Waqqas (may Allah be pleased with him), come to relieve him. The Prophet accepted, entered the tent, and fell asleep so quickly that Aisha could hear his breathing deepen almost immediately. She never forgot Sa’d’s kindness — the man who gave up his own rest so that the Messenger of God could sleep.

Hassan ibn Thabit and the Fortress: The Humanity of the Sahaba

Among those sent to Al-Fari’ah was Hassan ibn Thabit (may Allah be pleased with him), the official poet of the Prophet — the only relatively young man in the fortress who might otherwise have been expected on the front lines. Abdullah ibn al-Zubayr, narrating as an adult what he witnessed as a child, explains in Musnad Ahmad that Hassan was sent there because he was, to put it delicately, not suited for combat. The Arabic sources use the word jaban — a harsh term meaning he lacked physical courage. When he held a weapon, he trembled.

This was not a moral failing but a temperamental reality. Hassan was an artist — perhaps the greatest poet of his generation — and his gifts lay in language, not warfare. The Prophet himself recognized this, assigning him a role no other Companion could fill: standing on a special platform erected in the mosque, composing verses that defended Islam with the power of words. “Stand up, O Hassan,” the Prophet told him, “and the angel Jibril will be with you.”

The fortress incident reveals this dynamic with unflinching honesty. When Safiyyah bint Abd al-Muttalib, the Prophet’s aunt, heard a Banu Qurayza scout climbing the walls in the dead of night, she woke Hassan and asked him to defend them. His response was painfully candid: “O aunt of the Messenger of Allah, you know this is not my field. Don’t make it worse.” Safiyyah wrapped herself in a man’s shawl, took a dagger in her teeth, climbed out a window, and killed the scout herself, throwing his severed head down to his companion below, who fled in terror.

Why preserve such an unflattering story about a Companion? Because it teaches something essential: every person has a unique role to play, and personal weaknesses should never prevent someone from fulfilling that role. Hassan could not do what Khalid ibn al-Walid did on the battlefield. But Khalid could not do what Hassan did with words. When the Quraysh attacked with poetry — a weapon as potent as swords in Arabian culture — it was Hassan, with all his human frailties, who stood and delivered what Abu Bakr, Umar, and Uthman could not. His shortcomings, recorded honestly in authentic collections, make him not less of a role model but more of one — a reminder that God uses imperfect vessels for extraordinary purposes.

The Siege Begins

The Ahzab arrived and saw, for the first time in Arabian military history, a trench. They had no precedent for it, no tactic to counter it. The sheer mass of their army — the very thing that was supposed to guarantee victory — now worked against them. Ten thousand men with horses, camels, and supply wagons cannot cross a ditch thirteen feet wide and seven arm-lengths deep. They could not charge. They could not flank through the volcanic harras or the dense palm groves. They could only camp and wait.

The siege settled into a grinding war of attrition. The Muslims, backs to Mount Sila’ and facing the trench, endured cold, hunger, and the constant fear of a Banu Qurayza attack from within. Food supplies dwindled — barley ran short, meat disappeared, and the dates that sustained them could not last forever. The trench was, as the sources acknowledge, an act of desperation — a temporary measure, a stalling tactic that bought time but offered no permanent solution. The Muslims could not hold out indefinitely.

But they did not need to hold out indefinitely. They needed only to hold out long enough for God’s plan to unfold.

The Ghatafan, those hired mercenaries with no ideological commitment, had already tested the waters. Before the siege began in earnest, they sent an emissary to Madinah offering to withdraw in exchange for one-third of the city’s annual produce. The Prophet consulted Sa’d ibn Mu’adh and Sa’d ibn Ubadah (may Allah be pleased with them), the leaders of the Aws and Khazraj. Their response was electric: “Is this a command from Allah, or your own judgment? If it is from Allah, we hear and obey. But if it is your judgment — we never humiliated ourselves in the days of ignorance. Why should we do so now that Allah has honored us with Islam?”

The Prophet smiled. The emissary was sent back empty-handed.

The stage was now set for the most desperate weeks in the history of the young Muslim community — a siege that would test the believers to their breaking point, expose the hypocrites in their midst, and culminate in a divine intervention that would change the course of Arabian history forever.

But that is a story for the nights ahead — nights of freezing wind, missed prayers, and a single convert whose quiet intelligence would shatter the mightiest coalition Arabia had ever known.