BAYHAQI 19366:
from Abū Saʿīd al-Khudrī —
[Machine] The Prophet ﷺ was asked about what is permissible to kill. He said it is permissible to kill snakes, scorpions, rats, and crows, but it is not permissible to kill a dog except the rabid one, or a lizard, or a snake that is harmful. It has been narrated in the context of Hajj a Hadith from Ibn Al-Musayyib about killing snakes and wolves, and we have also narrated a Hadith from Sa'd ibn Abi Waqqas and others about killing geckos.
البيهقي ١٩٣٦٦:
عن ابو سعيد الخدري —
أَنَّ النَّبِيَّ ﷺ سُئِلَ عَمَّا يَقْتُلُ الْمُحْرِمُ قَالَ الْحَيَّةُ وَالْعَقْرَبُ وَالْفُوَيْسِقَةُ وَيَرْمِي الْغُرَابَ وَلَا يَقْتُلُهُ وَالْكَلْبُ الْعَقُورُ وَالْحِدَأَةُ وَالسَّبْعُ الْعَادِي وَرُوِّينَا فِي الْحَجِّ حَدِيثَ ابْنِ الْمُسَيِّبِ عَنِ النَّبِيِّ ﷺ فِي قَتْلِ الْحَيَّةِ وَالذِّئْبِ وَرُوِّينَا حَدِيثَ سَعْدِ بْنِ أَبِي وَقَّاصٍ وَغَيْرِهِ فِي قَتْلِ الْوَزَغِ
hadithunlocked.com