Language:
كتاب جزاء الصيد
28  
Penalty of Hunting while on Pilgrimage
(18)
Chapter: Entering the Haram and Makkah without Ihram
(18)
باب دُخُولِ الْحَرَمِ وَمَكَّةَ بِغَيْرِ إِحْرَامٍ
Sahih al-Bukhari 1846

Narrated Anas bin Malik:

Allah's Messenger (ﷺ) entered Mecca in the year of its Conquest wearing an Arabian helmet on his head and when the Prophet (ﷺ) took it off, a person came and said, "Ibn Khatal is holding the covering of the Ka`ba (taking refuge in the Ka`ba)." The Prophet (ﷺ) said, "Kill him."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنِ ابْنِ شِهَابٍ، عَنْ أَنَسِ بْنِ مَالِكٍ ـ رضى الله عنه ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم دَخَلَ عَامَ الْفَتْحِ، وَعَلَى رَأْسِهِ الْمِغْفَرُ، فَلَمَّا نَزَعَهُ جَاءَ رَجُلٌ، فَقَالَ إِنَّ ابْنَ خَطَلٍ مُتَعَلِّقٌ بِأَسْتَارِ الْكَعْبَةِ‏.‏ فَقَالَ ‏ "‏ اقْتُلُوهُ ‏"‏‏.‏
Reference : Sahih al-Bukhari 1846
In-book reference : Book 28, Hadith 26
USC-MSA web (English) reference : Vol. 3, Book 29, Hadith 72
  (deprecated numbering scheme)