Genocide Of Banu Qurayza
Yes. This is the punishment God has given the Jews multiple times in their history. The same repeated to them. Its implementation by the Prophet confirms that it was not aginst God’s ordinance.