The Messenger of Allaah (sal Allaahu alayhi wa sallam) ordered the killing of the dogs, and then said: Why are they (people) after them (dogs)? and then granted permission (to keep) for hunting and for (the security) of the herd, and said : When the dog licks the utensil wash it seven times, and rub it with earth the eighth time. Abu Dawud said : Ibn Mughaffal narrated in a similar way. (Using translation from Abū Dāʾūd 74)
أَمَرَ رَسُولُ اللهِ ﷺ بِقَتْلِ الْكِلَابِ ثُمَّ قَالَ مَا لَكُمْ وَلِلْكِلَابِ ثُمَّ رَخَّصَ فِي كَلْبِ الصَّيْدِ وَالْغَنَمِوَقَالَ فِي الْإِنَاءِ إِذَا وَلَغَ فِيهِ الْكَلْبُ اغْسِلُوهُ سَبْعَ مَرَّاتٍ وَعَفِّرُوهُ فِي الثَّامِنَةِ بِالتُّرَابِ