The Invasion of Banu Qurayza, also known as the Massacre of Banu Qurayza, took place in the Dhul Qa‘dah during February and March of 627 AD (5 AH).
The Islamic prophet Muhammad besieged the Banu Qurayza for 25 days until they surrendered. One of Muhammad’s companions decided that “the men should be killed, the property divided, and the women and children taken as captives”. Muhammad approved of the ruling, calling it similar to God’s judgment, after which all male members of the tribe who had reached puberty were beheaded. According to Daniel C. Peterson and Martin Lings, this judgment was in accordance with the law of Moses as stated in Deuteronomy 20:10-14. The Muslim jurist Tabari quotes 600–900 being executed. The Sunni hadith do not give the number killed, but state that all males were killed and 1 woman. The rest of the women and children were sold in exchange for weapons and horses, according to Islamic sources.
According to Ibn Kathir, Quranic verses 33:26-27 and 33:9-10 are about the attack against the Banu Qurayza.