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
Islam and war This Muslim victory over polytheists showed "demonstration of divine guidance and intervention on behalf of Muslims, even when outnumbered." Other early battles included battles in Uhud (625), Khandaq (627), Mecca (630) and Hunayn (630). These battles, especially Uhud and Khandaq, were unsuccessful in comparison to the Battle of Badr. In relating this battle, the Qu'ran states that Allah sent an "unseen army of angels" that helped the Muslims defeat the Meccans. Islamic concepts concerning war refer to what have been accepted in Sharia (Islamic law) and Fiqh (Islamic jurisprudence) by "Ulama" (Islamic scholars) as the correct Islamic manner which is