It was narrated that Abu Hurairah said: “The Messenger of Allah (ﷺ) forbade killing shrikes*, frogs, ants and hoopoes.”
It was narrated that Ibn ‘Abbas said: “The Messenger of Allah (ﷺ) forbade killing four kinds of animals: Ants, bees, hoopoes and shrikes.”
It was narrated from Abu Hurairah that the Prophet of Allah (ﷺ) said: “One of the Prophets was bitten by an ant, so he ordered that the ant colony be burned. Then Allah revealed to him: ‘Because one ant bit you, you destroy one of the nations that glorify Allah?’”