When the tribe of Bani Quraiza was ready to accept Saʿd's judgment, Messenger of Allah ﷺ sent for Saʿd who was near to him. Saʿd came, riding a donkey and when he came near, Messenger of Allah ﷺ said (to the Ansar), "Stand up for your leader." Then Saʿd came and sat beside Messenger of Allah ﷺ who said to him. "These people are ready to accept your judgment." Saʿd said, "I give the judgment that their warriors should be killed and their children and women should be taken as prisoners." The Prophet ﷺ then remarked, "O Saʿd! You have judged amongst them with (or similar to) the judgment of the King Allah."
عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ؓ قَالَ لَمَّا نَزَلَتْ بَنُو قُرَيْظَةَ عَلَى حُكْمِ سَعْدٍ هُوَ ابْنُ مُعَاذٍ بَعَثَ رَسُولُ اللَّهِ ﷺ وَكَانَ قَرِيبًا مِنْهُ فَجَاءَ عَلَى حِمَارٍ فَلَمَّا دَنَا قَالَ رَسُولُ اللَّهِ ﷺ قُومُوا إِلَى سَيِّدِكُمْ فَجَاءَ فَجَلَسَ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ لَهُ إِنَّ هَؤُلاَءِ نَزَلُوا عَلَى حُكْمِكَ قَالَ فَإِنِّي أَحْكُمُ أَنْ تُقْتَلَ الْمُقَاتِلَةُ وَأَنْ تُسْبَى الذُّرِّيَّةُ قَالَ لَقَدْ حَكَمْتَ فِيهِمْ بِحُكْمِ الْمَلِكِ