CHAPTER: Regarding killing ants.
Abu Hurairah reported the prophet صلی اللہ علیہ وسلم as saying: A prophet got down beneath a tree and he was stung by an ant. He ordered regarding the baggage and it was removed from beneath it. He then ordered regarding it and it was burnt. Allah then revealed to him: why not (just) one ant?
Abu Hurairah reported Messenger of Allah صلی اللہ علیہ وسلم 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.
Narrated Abdullah ibn Abbas: The Prophet صلی اللہ علیہ وسلم prohibited to kill four creatures: ants, bees, hoopoes, and sparrow-hawks.
Abdur-Rahman bin Abdullah quoted his father as saying: When we were on a journey with the Messenger of Allah صلی اللہ علیہ وسلم and he had gone to releive himself, we saw a Hummarah with two young ones. We took the young ones. The Hummarah came and began to spread out its wings. Then the prophet صلی اللہ علیہ وسلم came and said: who has pained this young by the loss of her young? Give her young ones back to her. We also saw an ant-hill which we had burned. He asked? Who has burned this? We replied: we have. He said: it is not fitting that anyone but the lord of the fire should punish with fire.