Sahih Muslim – Hadith No : 280

Ibn Mughaffal reported: The Messenger of Allah (may peace be upon him) 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.

Hadith In Arabic Text :

وحدثنا عبيد الله بن معاذ، حدثنا أبي، حدثنا شعبة، عن أبي التياح، سمع مطرف بن عبد الله، يحدث عن ابن المغفل، قال أمر رسول الله صلى الله عليه وسلم بقتل الكلاب ثم قال ‏”‏ ما بالهم وبال الكلاب ‏”‏ ‏.‏ ثم رخص في كلب الصيد وكلب الغنم وقال ‏”‏ إذا ولغ الكلب في الإناء فاغسلوه سبع مرات وعفروه الثامنة في التراب ‏”‏ ‏.‏

Chapter : The Book of Purification – كتاب الطهارة