Sunan Abi Dawud, Book 43, Hadith 494 (Abu Dawud 5268)

Abu Hurairah reported Messenger of Allah (May peace be upon him) as saying :

An ant stung a prophet. He ordered a colony of ants to be burned. Allah revealed to him : because an ant stung you, you have perished a community which glorifies Me.