Anas bin Malik reported,

The Prophet ﷺ entered Makkah on the day of the Conquest with a helmet on his head. When he took it off, a man came and said, "Ibn Khatal is clinging to the curtains of the Kaabah."He said, "Kill him."Malik said, "As far as we can tell, and Allah knows best, the Prophet ﷺ was not in a state of ihram that day."

Bukhari 4286

Sahih

حدثنا يحيى بن قزعة حدثنا مالك عن ابن شهاب

عن أنس بن مالك رضي الله عنه

أن النبي ﷺ دخل مكة يوم الفتح وعلى رأسه المغفر فلما نزعه جاء رجل فقال ابن خطل متعلق بأستار الكعبة فقال اقتله قال مالك ولم يكن النبي ﷺ فيما نرى والله أعلم يومئذ محرما

البخاري 4286صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Where the Prophet ﷺ planted the banner on the day of the Conquest
Numbering
Darussalam 4286
Bukhari 4286