The Jews of Banu Qurayzhah breached the covenant and allied with the polytheists against the Muslims, so their own evil scheme turned against them. The corporal punishment that is prescribed in their own legislation for treason and the breach of covenants was executed on them after the Prophet had allowed them to choose someone to give his verdict on their case. They chose one of the Prophet's Companions and he decided that the retaliation ruling mentioned in their own legislation be executed on them. [153] "Tārīkh al-Islām" (318- 307/2).
What is the punishment of traitors and the breachers of covenants today according to the laws of the United Nations? Just try to imagine a group of people determined to kill you and all your family and steal your money, what would you do to them? The Jews of Banu Qurayzhah breached the covenant and allied with the polytheists to eliminate the Muslims, what did the Muslims have to do then to protect themselves? The Muslims' reaction to what happened was simply practicing their right of self-defense.