Abu Saeed Khudri reported,

When Banu Qurayza surrendered to the judgment of Saad bin Muaz, the Messenger of Allah ﷺ sent for him, and he came riding on a donkey. When he drew near, the Messenger of Allah ﷺ said, "Stand up for your chief."He came and sat beside the Messenger of Allah ﷺ, who said to him, "These people have agreed to accept your judgment."Saad replied, "I rule that the fighting men be killed and the women and children be taken captive."The Messenger of Allah ﷺ said, "You have judged them by the ruling of the King," meaning Allah.

Azami 7994

Sahih

عن أبي سعيد الخدري قال

لما نزلت بنو قريظة على حكم سعد بن معاذ، بعث رسول الله ﷺ، فجاء على حمار، فلما دنا، قال رسول الله ﷺ: قوموا إلى سيدكم، فجاء فجلس إلى رسول الله ﷺ، فقال له: إن هؤلاء نزلوا على حكمك، قال: فإني أحكم أن تقتل المقاتلة وأن تسبى الذرية، قال: لقد حكمت فيهم بحكم الملك يعني الله.

الأعظمي 7994صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Treaty with the enemy
Section
Punishing those among the disbelievers who broke the covenant
Numbering
Jami al-Kamil 7994 (2nd edition)
Azami 7994