The people of (Banu) Quraiza agreed to accept the verdict of Saʿd bin Muʿadh. So the Prophet ﷺ sent for Saʿd, and the latter came (riding) a donkey and when he approached the Mosque, the Prophet ﷺ said to the Ansar, "Get up for your chief or for the best among you." Then the Prophet ﷺ said (to Saʿd)." These (i.e. Banu Quraiza) have agreed to accept your verdict." Saʿd said, "Kill their (men) warriors and take their offspring as captives, "On that the Prophet ﷺ said, "You have judged according to Allah's Judgment," or said, "according to the King's judgment." (Using translation from Bukhārī 4121)
سَمِعْتُ أَبَا سَعِيدٍ الْخُدْرِيَّ يَقُولُ نَزَلَ أَهْلُ قُرَيْظَةَ عَلَى حَكَمِ سَعْدِ بْنِ مُعَاذٍ فَأَرْسَلَ رَسُولُ اللهِ ﷺ إِلَى سَعْدِ بْنِ مُعَاذٍ فَأَتَاهُ عَلَى حِمَارٍ فَلَمَّا دَنَا قَرِيبًا مِنَ الْمَسْجِدِ قَالَ رَسُولُ اللهِ ﷺ لِلْأَنْصَارِ «قُومُوا إِلَى سَيِّدِكُمْ» ثُمَّ قَالَ «إِنَّ هَؤُلَاءِ نَزَلُوا عَلَى حُكْمِكَ» قَالَ «تُقَتَّلُ مُقَاتِلَتُهُمْ وَتُسْبَى ذُرِّيَّتُهُمْ» قَالَ النَّبِيُّ ﷺ «قَضَيْتَ بِحُكْمِ اللهِ» وَرُبَّمَا قَالَ «قَضَيْتَ بِحُكْمِ الْمَلِكِ»