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 the Defile the Turgesh army withdrew north towards Samarkand. The Muslim army followed, and scored a victory in a battle fought near the city. Junayd then retired with his troops to winter in Merv. During the winter, rebellions broke out south of the Oxus, in Tokharistan, which had hitherto been quiescent to Muslim rule. Junayd was forced to set out for Balkh and there dispersed 28,000 of his men to quell the revolt. This left him seriously weakened when, in early 731, the Turgesh laid siege to Samarkand and appeals for aid arrived from the city's governor, Sawra ibn al-Hurr al-Abani. Despite