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 Uhud opposition from the rest of the Quraysh, the tribe that ruled Mecca and to which he belonged. The Muslims fled Mecca in 622 after years of persecution and established themselves at Medina (formerly known as "Yathrib"; Medina means "City"). The Quraysh had seized the properties and families of Muslims in Mecca and dispatched caravans to Damascus which the Muslims intercepted and raided. The Meccans sent out a small army to punish the Muslims and stop their raiding. At the Battle of Badr in 623, a small Muslim force defeated the much larger Meccan army. Many Muslims considered this unexpected victory