(168) باب إِذَا نَزَلَ الْعَدُوُّ عَلَى حُكْمِ رَجُلٍ
Narrated Abu Sa`id Al-Khudri:
When the tribe of Bani Quraiza was ready to accept Sa`d's judgment, Allah's Messenger (ﷺ) sent for Sa`d who was near to him. Sa`d came, riding a donkey and when he came near, Allah's Messenger (ﷺ) said (to the Ansar), "Stand up for your leader." Then Sa`d came and sat beside Allah's Messenger (ﷺ) 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."
Reference: Sahih al-Bukhari 3043
In-book reference: Book 56, Hadith 249
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 4, Book 52, Hadith 280