Hadith Where Prophet Burnt The Ants
This Hadith is also narrated from Abu Huraira ra by Hassan Basri and he did not mention the Prophet pbuh in the chain. Imam Nasai said that chain is mawquf and not marfu. It might be possible that Abu Huraira ra heard it from Kab and it could be from the israeliyaat, but this is unlikely as many other narrators narrate Marfu from Abu Huraira ra. Well it could be because of state of mind, to Err is Human. God forbade the Prophet afterwards. Also, it is narrated from the same Abu Huraira ra that the prophet pbuh forbade killing the ants. It is similar to the incident mentioned in the Quran when a Prophet killed horses because those horses distracted that prophet pbuh from praying (although people differ in interpretation). It is clear that Prophets were also humans with humanly attributes such as Anger, rage etc. Often times it occurs that even minor things bother one so much that one cannot control. Ibn Hajar has described the context of this Hadith in his commentary on Bukhari, take a look at that too. Will appreciate a deeper look by our dear scholars.
It was not prophet Muhamamd [saw] that got bitten by ant , the hadith says he was mentioning it about another prophet.