Sahih al-Bukhari, Volume 4, Book 52, Hadith 280 (USC-MSA)

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."

حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ، حَدَّثَنَا شُعْبَةُ، عَنْ سَعْدِ بْنِ إِبْرَاهِيمَ، عَنْ أَبِي أُمَامَةَ ـ هُوَ ابْنُ سَهْلِ بْنِ حُنَيْفٍ ـ عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ ـ رضى الله عنه ـ قَالَ لَمَّا نَزَلَتْ بَنُو قُرَيْظَةَ عَلَى حُكْمِ سَعْدٍ ـ هُوَ ابْنُ مُعَاذٍ ـ بَعَثَ رَسُولُ اللَّهِ صلى الله عليه وسلم، وَكَانَ قَرِيبًا مِنْهُ، فَجَاءَ عَلَى حِمَارٍ، فَلَمَّا دَنَا قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ قُومُوا إِلَى سَيِّدِكُمْ ‏"‏‏.‏ فَجَاءَ فَجَلَسَ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ لَهُ ‏"‏ إِنَّ هَؤُلاَءِ نَزَلُوا عَلَى حُكْمِكَ ‏"‏‏.‏ قَالَ فَإِنِّي أَحْكُمُ أَنْ تُقْتَلَ الْمُقَاتِلَةُ، وَأَنْ تُسْبَى الذُّرِّيَّةُ‏.‏ قَالَ ‏"‏ لَقَدْ حَكَمْتَ فِيهِمْ بِحُكْمِ الْمَلِكِ ‏"‏‏.‏

sunnah.com

Narrated Anas bin Malik (ra): Allah's Messenger entered (Makkah) in the year of the Conquest (of Makkah) wearing a helmet over his head. After he took it off, a man came and said, "Ibn Khatal is clinging to the curtains of the Ka'bah." The Prophet said, "Kill him."

حَدَّثَنَا إِسْمَاعِيلُ، قَالَ حَدَّثَنِي مَالِكٌ، عَنِ ابْنِ شِهَابٍ، عَنْ أَنَسِ بْنِ مَالِكٍ ـ رضى الله عنه أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم دَخَلَ عَامَ الْفَتْحِ وَعَلَى رَأْسِهِ الْمِغْفَرُ، فَلَمَّا نَزَعَهُ جَاءَ رَجُلٌ فَقَالَ إِنَّ ابْنَ خَطَلٍ مُتَعَلِّقٌ بِأَسْتَارِ الْكَعْبَةِ، فَقَالَ ‏ "‏ اقْتُلُوهُ ‏" ‏‏.‏

sunnah.com