كتاب الطهارة
2  
The Book of Purification
(27)
Chapter: Rulings on what was licked by a dog
(27)
باب حُكْمِ وُلُوغِ الْكَلْبِ ‏‏
Sahih Muslim 280a

Ibn Mughaffal reported:

The Messenger of Allah (ﷺ) ordered killing of the dogs, and then said: What about them, i. e. about other dogs? and then granted concession (to keep) the dog for hunting and the dog 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.
وَحَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ، حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي التَّيَّاحِ، سَمِعَ مُطَرِّفَ بْنَ عَبْدِ اللَّهِ، يُحَدِّثُ عَنِ ابْنِ الْمُغَفَّلِ، قَالَ أَمَرَ رَسُولُ اللَّهِ صلى الله عليه وسلم بِقَتْلِ الْكِلاَبِ ثُمَّ قَالَ ‏"‏ مَا بَالُهُمْ وَبَالُ الْكِلاَبِ ‏"‏ ‏.‏ ثُمَّ رَخَّصَ فِي كَلْبِ الصَّيْدِ وَكَلْبِ الْغَنَمِ وَقَالَ ‏"‏ إِذَا وَلَغَ الْكَلْبُ فِي الإِنَاءِ فَاغْسِلُوهُ سَبْعَ مَرَّاتٍ وَعَفِّرُوهُ الثَّامِنَةَ فِي التُّرَابِ ‏"‏ ‏.‏
Reference : Sahih Muslim 280a
In-book reference : Book 2, Hadith 119
USC-MSA web (English) reference : Book 2, Hadith 551
  (deprecated numbering scheme)