كتاب الحج
15  
The Book of Pilgrimage
(84)
Chapter: It is permissible to enter Makkah without Ihram
(84)
باب جَوَازِ دُخُولِ مَكَّةَ بِغَيْرِ إِحْرَامٍ ‏‏
Sahih Muslim 1357

Anas b. Malik (Allah be pleased with them) reported that Allah's Apostle (ﷺ) entered Mecca in the Year of Victory with a helmet on his head; and when he took it off, a man came to him and said:

Ibn Khatal is hanging on to the curtains of the Ka'ba, whereupon he said: Kill him. Malik (one of the narrators) attested this statement having been made.
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مَسْلَمَةَ الْقَعْنَبِيُّ، وَيَحْيَى بْنُ يَحْيَى، وَقُتَيْبَةُ بْنُ سَعِيدٍ، أَمَّا الْقَعْنَبِيُّ فَقَالَ قَرَأْتُ عَلَى مَالِكِ بْنِ أَنَسٍ وَأَمَّا قُتَيْبَةُ فَقَالَ حَدَّثَنَا مَالِكٌ وَقَالَ يَحْيَى - وَاللَّفْظُ لَهُ - قُلْتُ لِمَالِكٍ أَحَدَّثَكَ ابْنُ شِهَابٍ عَنْ أَنَسِ بْنِ مَالِكٍ أَنَّ النَّبِيَّ صلى الله عليه وسلم دَخَلَ مَكَّةَ عَامَ الْفَتْحِ وَعَلَى رَأْسِهِ مِغْفَرٌ فَلَمَّا نَزَعَهُ جَاءَهُ رَجُلٌ فَقَالَ ابْنُ خَطَلٍ مُتَعَلِّقٌ بِأَسْتَارِ الْكَعْبَةِ ‏.‏ فَقَالَ ‏ "‏ اقْتُلُوهُ ‏"‏ ‏.‏ فَقَالَ مَالِكٌ نَعَمْ ‏.‏
Reference : Sahih Muslim 1357
In-book reference : Book 15, Hadith 512
USC-MSA web (English) reference : Book 7, Hadith 3145
  (deprecated numbering scheme)