Sahih al-Bukhari 3044
Sahih al-Bukhari · Book 56: Fighting for the Cause of Allah (Jihaad) · The killing of a captive
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."