Nafi' narrates from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the Jews of Banu al-Nadir and Qurayzah waged war against the Prophet (peace and blessings be upon him). So the Messenger of Allah (peace and blessings be upon him) exiled Banu al-Nadir and let Banu Qurayzah remain, and showed them kindness. When Banu Qurayzah waged war, their men were killed, and their women, wealth and children were divided among the Muslims, but some people joined the Messenger of Allah (peace and blessings be upon him), so he granted them safety and they accepted Islam.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجزية / 18857