The Messenger of Allah ﷺ forbade the killing of four creatures, the ant, the bee, the hoopoe, and the shrike.
حدثنا عبد الرزاق أخبرنا معمر عن الزهري عن عبيد الله بن عبد الله بن عتبة
نهى رسول الله ﷺ عن قتل أربع من الدواب النملة والنحلة والهدهد والصرد
Its isnad is sahih. Abu Dawud and Ibn Majah also narrated it, as mentioned in Muntaqa 4607.