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)
أَنَّ رَسُولَ اللهِ ﷺ أَمَرَ بِقَتْلِ الْكِلَابِ ثُمَّ قَالَ مَا لَهُمْ وَلَهَا فَرَخَّصَ فِي كَلْبِ الصَّيْدِ وَفِي كَلْبِ الْغَنَمِ قَالَ وَإِذَا وَلَغَ الْكَلْبُ فِي الْإِنَاءِ فَاغْسِلُوهُ سَبْعَ مِرَارٍ وَالثَّامِنَةَ عَفِّرُوهُ بِالتُّرَابِ