Sahih al-Bukhari 3804
Narrated Abu Said Al-Khudri:
Some people (i.e. the Jews of Bani bin Quraiza) agreed to accept the verdict of Sad bin Muadh so the Prophet sent for him (i.e. Sad bin Muadh). He came riding a donkey, and when he approached the Mosque, the Prophet ﷺ said, "Get up for the best amongst you." or said, "Get up for your chief." Then the Prophet ﷺ said, "O Sad! These people have agreed to accept your verdict." Sad said, "I judge that their warriors should be killed and their children and women should be taken as captives." The Prophet ﷺ said, "You have given a judgment similar to Allah's Judgment (or the King's judgment)."
حَدَّثَنَا مُحَمَّدُ بْنُ عَرْعَرَةَ، حَدَّثَنَا شُعْبَةُ، عَنْ سَعْدِ بْنِ إِبْرَاهِيمَ، عَنْ أَبِي أُمَامَةَ بْنِ سَهْلِ بْنِ حُنَيْفٍ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ـ رضى الله عنه ـ أَنَّ أُنَاسًا نَزَلُوا عَلَى حُكْمِ سَعْدِ بْنِ مُعَاذٍ، فَأَرْسَلَ إِلَيْهِ فَجَاءَ عَلَى حِمَارٍ، فَلَمَّا بَلَغَ قَرِيبًا مِنَ الْمَسْجِدِ قَالَ النَّبِيُّ ﷺ " قُومُوا إِلَى خَيْرِكُمْ أَوْ سَيِّدِكُمْ ". فَقَالَ " يَا سَعْدُ، إِنَّ هَؤُلاَءِ نَزَلُوا عَلَى حُكْمِكَ ". قَالَ فَإِنِّي أَحْكُمُ فِيهِمْ أَنْ تُقْتَلَ مُقَاتِلَتُهُمْ وَتُسْبَى ذَرَارِيُّهُمْ. قَالَ " حَكَمْتَ بِحُكْمِ اللَّهِ، أَوْ بِحُكْمِ الْمَلِكِ ".