There was peace throughout Madina after long last. Previously, there had been problems from different communities within Madina. The Muslims had also suffered many attacks from the Makkans and other Arabs.
However, the peace was short lived as the non-believers made secret preparations for a final battle against the Muslims. Tribes from all over Arabia were ready to march to Madina. The details of this battle were kept secret so that the Muslims could not make any preparations to defend Madina.
Before long, many armies were marching to Madina from all over Arabia. This news reached the Prophet (pbuh) who called an emergency meeting to plan a defence against this huge army of non-Muslims. During the meeting, Salman Farsi suggested that a trench be dug so that the enemy could not enter Madina.
Immediately the Muslims started work and managed to complete the trench just in time before the non-Muslims arrived. The Muslims worked very hard and worked long hours without any rest. The Muslims then defended their position from days of non-stop attacks by the huge non-Muslim army.
After many days of fighting, the Muslims were utterly exhausted and were running short of food and other supplies. Then the hypocrites left the Muslim army leaving the Muslim army’s position even weaker. Thereafter, Bani Quraizah, who lived in Madina, joined the non-Muslims and offered them easy access to Madina.
Things were very difficult for the Muslims who were facing so many hardships. This was a very big test from Allah. The Muslims remained patient and continued to work hard. Allah finally gave the Muslims victory and the armies left.