Surah 33 was revealed after The Battle of the Trench, which occurred in the year 627 (5 years after the Hijrah, or 5 AH). Both Islamic and non-Islamic historians agree that this battle was fought in Yathrib (Medina) between the defending Muslims and the attacking Meccan Pagans and Jews previously expelled from Yathrib by Mohamed. In all previous engagements the Muslims were the aggressors, but this battle was an attack on them in an attempt to defeat them once and for all. It was a disaster for the Confederates, as they were called, who were soundly defeated by the defending Muslims thereby ending the Pagan's will and ability to defend themselves. After the battle Mohamed claimed he was visited by Gabriel who told him to attack the one remaining Jewish tribe in Yathrib; the Banu Quraiza (Mohamed had expelled the other two and confiscated their property). After a 2-week siege the Jews surrendered unconditionally, a decision that would lead to their annihilation at the hands of Mohamed's forces. All men and youths were beheaded (between 600 and 900 depending on the source), the women and children were taken as captives, and their property and possessions were distributed among Mohamed's fighters. That completed Mohamed's purge of Yathrib's Jews only 5 years after they welcomed him to their city.
Verses 33:26-27 are an outright admission that Mohamed presided over slaughter, enslavement, and theft; all perpetrated against Jews - "And He brought down those of the People of the Book who supported them from their fortresses and cast terror in their hearts; some you slew, some you made captive. And He bequeathed upon you their lands, their habitations, and their possessions." The phrase "those of the People of the Book who supported them" is an accusation that is unsupported by any other verse. Considering that verse 33:21 says Mohamed "is certainly a good example for those of you who have hope in God and the Day of Judgment and who remember God very often", the events of October 7, 2023, which included all of the elements above - terror, murder, and taking captives, should come as no surprise.