On the day of the Conquest, the Prophet ﷺ entered Mecca, wearing a helmet on his head. When he took it off, a man came and said, "Ibn Khatal is clinging to the curtain of the Kaʿba." The Prophet ﷺ said, "Kill him." (Malik a sub-narrator said, "On that day the Prophet ﷺ was not in a state of Ihram as it appeared to us, and Allah knows better.")
أَنَّ النَّبِيَّ ﷺ دَخَلَ مَكَّةَ يَوْمَ الْفَتْحِ وَعَلَى رَأْسِهِ الْمِغْفَرُ فَلَمَّا نَزَعَهُ جَاءَ رَجُلٌ فَقَالَ ابْنُ خَطَلٍ مُتَعَلِّقٌ بِأَسْتَارِ الْكَعْبَةِ فَقَالَ اقْتُلْهُ قَالَ مَالِكٌ وَلَمْ يَكُنِ النَّبِيُّ ﷺ فِيمَا نُرَى وَاللَّهُ أَعْلَمُ يَوْمَئِذٍ مُحْرِمًا