He reported God’s messenger as saying that when a prophet was stung by an ant he ordered a colony of ants to be burned, and God most high revealed to him, "Because an ant stung you you have burned a community which glorifies me."
(Bukhari and Muslim.)