Sahih Bukhari Volume 005, Book 059, Hadith Number 582.
Hadith Section/Book: Sahih Bukhari Sahih Bukhari Book 59. Military Expeditions Led by the Prophet (PBUH) (Al-Maghaazi)
Narrated By Anas bin Malik : 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.")