Sayyiduna Ibn Umar (may Allah be pleased with them both) said that the Jews of Banu al-Nadir and Banu Qurayzah fought against the Messenger of Allah (peace and blessings be upon him). He (peace and blessings be upon him) exiled Banu al-Nadir and allowed the people of Qurayzah to remain, showing them favour. After that Banu Qurayzah also fought, so he (peace and blessings be upon him) killed their men and divided their women, children and wealth among the Muslims, and he spared those who joined the Messenger of Allah (peace and blessings be upon him); he (peace and blessings be upon him) granted them safety and they accepted Islam. He (peace and blessings be upon him) exiled the Jews of Madinah, among them Banu Qaynuqa', who were the people of Sayyiduna Abdullah bin Salam (may Allah be pleased with him), and the Jews of Banu Harithah, and he exiled every Jew who was in Madinah.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 18021