Battle of Uhud and forced the Meccan lines back, thus leaving much of the Meccan camp unprotected. When the battle looked to be only one step away from a decisive Muslim victory, a serious mistake was committed by a part of the Muslim army, which altered the outcome of the battle. A breach of Muhammad's orders by the Muslim archers, who left their assigned posts to despoil the Meccan camp, allowed a surprise attack from the Meccan cavalry, led by Meccan war veteran Khalid ibn al-Walid, which brought chaos to the Muslim ranks. Many Muslims were killed, and Muhammad himself was badly injured.
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