Battle of the Trench enemy in the open (which led to victory at Badr), and waiting for them inside the city (a lesson learnt from the defeat at Uhud) were both suggested. Ultimately, the outnumbered Muslims opted to engage in a defensive battle by digging deep trenches to act as a barrier along the northern front. The tactic of a defensive trench was introduced by Salman the Persian. Every capable Muslim in Medina including Muhammad contributed to digging the massive trench in six days. The ditch was dug on the northern side only, as the rest of Medina was surrounded by rocky mountains and
Military career of Muhammad in their favour. Afterwards the two armies exchanged arrow fire, before finally clashing. According to the Quran, thousands of angels descended from heaven and participated in the battle, being instructed by Allah to "smite the [Meccan warrior's] necks and smite of them each finger." According to another Quranic verse, Allah fought and killed the Meccans representatively for the Muslim warriors. The Meccan army eventually collapsed soon after the horse of Abu Jahl was brought down, resulting in the first major Muslim victory. This victory must not so much be ascribed to divine intervention as is done in the Islamic sources,