[24] See for example: https://www.
[24] See for example: https://www.hubeali.com/article/ahlul-bayt-asws/imam-al-hussain-asws-ibn-ali-asws/ Battle of Trench (Khandaq): Year 5 After being defeated at Badr and Uhad, the Quraysh of Makkah sought help from the Jews and came forward with a large, allied force to uproot Islam, considering it a major threat to their religious beliefs. Rasool-Allah -asws decided to protect Madinah from the large confederate army by digging a trench around the city.
Below are some Ahadith related to the Battle of Khandaq. The holy Verse: O you those who believe! Recall the Favour of Allah upon you when the armies came towards you, so We Sent a wind against them and armies you could not see, and Allah was always Seeing what you were doing [33:9] When they came to you from above you and from below you, [33:10] – the Verse. ‘It was Revealed regarding the story of the allies from Quraysh and Arabs, those who were allied against Rasool-Allah -saww .
And that is when Quraysh gathered in the year five from Al-Hijra and they came to be among the Arabs and gathered them and provoked them for war against Rasool-Allah -saww . So, they raised (an army of) ten thousand, and with them was Kanana, and Saleym, and Fazara.
[25] Briefly, the Battle of the Trench (Battle of Khandaq, غزوة الخندق) which is also known as the Battle of the Confederates (Battle of Ahzaab, غزوة الاحزاب) was about a month long defence by the Muslims of Yathrib (now Madinah ) against allied Arab and Jewish tribes. The strength of the confederate armies consisted of over 10,000 soldiers while the Muslim defenders numbered to about a third of them.
Rasool-Allah -saww decided to dig a trench around Madinah in order to protect the Muslims as the confederates had planned to attack them from multiple directions. The digging of the trench was a painstaking and strenuous task that exhausted the Muslims.
They were working day and night, digging around Madinah, including going several days without eating any food, i.e., Rasool-Allah -saww was offered a disc of bread by his -saww daughter (Syeda Fatima -asws ) which was the Prophet -saww ’s only meal in three days. Similar was the condition of Ali -asws Ibn Abi Talib -asws and the other companions of Rasool-Allah -saww – except for the hypocrites who fabricated worthless excuses to take leave of absence from the hard work.
When the enemies of Islam approached, they could not figure out a passage beyond the trench in order to fight against Muslims.