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
Battle of Badr subject of Sura 8: Al-Anfal, which details military conduct and operations. "Al-Anfal" means "the spoils" and is a reference to the post-battle discussion in the Muslim army over how to divide up the plunder from the Quraishi army. Though the Sura does not name Badr, it describes the battle, and several of the verses are commonly thought to have been from or shortly after the battle. This battle is also mentioned in the Sunni Hadith collection Sahih al-Bukhari and Sunan Abu Dawud. Sahih al-Bukhari mentions that Uthman did not join the battle: It also mentions the war booty that each