Banu Qurayza after his victory over the Meccans in the Battle of Badr, Banu Qaynuqa threatened Muhammad's political position and assaulted a Muslim woman which led to their expulsion from Medina for breaking the peace treaty of Constitution of Medina. The Qurayza remained passive during the whole Qaynuqa affair, apparently because the Qaynuqa were historically allied with the Khazraj, while the Qurayza were the allies of the Aws. Soon afterwards, Muhammad came into conflict with the Banu Nadir. He had one of the Banu Nadir's chiefs, the poet Ka'b ibn al-Ashraf, assassinated and after the Battle of Uhud accused the tribe of
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