Muwatta Malik, Book 20, Hadith 256 (USC-MSA)

Yahya related to me from Malik from Ibn Shihab from Anas ibn Malik that the Messenger of Allah, may Allah bless him and grant him peace, entered Makka, in the Year of Victory, wearing a helmet, and when he took it off a man came to him and said, "Messenger of Allah, Ibn Khatal is clinging to the covers of the Kaba,'' and the Messenger of Allah, may Allah bless him and grant him peace, said, "Kill him." Malik commented, "The Messenger of Allah, may Allah bless him and grant him peace, was not in ihram at the time, and Allah knows best."

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

sunnah.com

also referenced under: Book 20, Hadith 952 (In-Book)