The Jews of Nadir and Qurayza fought against the Messenger of Allah ﷺ, so the Messenger of Allah ﷺ expelled Banu Nadir and allowed Qurayza to remain, granting them favor, until Qurayza later went to war against him. Their men were killed, and their women, children, and wealth were divided among the Muslims, except for some of them who came to the Messenger of Allah ﷺ. He granted them safety, and they embraced Islam.The Messenger of Allah ﷺ expelled all the Jews of Madinah, including Banu Qaynuqa, who were the people of Abdullah bin Salam, the Jews of Banu Haritha, and every other Jew in Madinah.
حدثنا محمد بن يحيى بن فارس حدثنا عبد الرزاق أخبرنا ابن جريج عن موسى بن عقبة عن نافع
أن يهود النضير وقريظة حاربوا رسول الله ﷺ فأجلى رسول الله ﷺ بني النضير وأقر قريظة ومن عليهم حتى حاربت قريظة بعد ذلك فقتل رجالهم وقسم نساءهم وأولادهم وأموالهم بين المسلمين إلا بعضهم لحقوا برسول الله ﷺ فأمنهم وأسلموا وأجلى رسول الله ﷺ يهود المدينة كلهم بني قينقاع وهم قوم عبد الله بن سلام ويهود بني حارثة وكل يهودي كان بالمدينة
Bukhari narrated it in the Book of Military Expeditions, chapter on the account of Banu Nadir, etc., no. 4028, and Muslim in the Book of Jihad and Expeditions, chapter on the expulsion of the Jews from Hijaz, no. 1766, from the hadith of Abdul-Razzaq through this chain, and it is found in his Musannaf, no.