أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ الأَعْلَى الصَّنْعَانِيُّ، قَالَ حَدَّثَنَا خَالِدٌ، حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي التَّيَّاحِ، قَالَ سَمِعْتُ مُطَرِّفًا، عَنْ عَبْدِ اللَّهِ بْنِ الْمُغَفَّلِ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم أَمَرَ بِقَتْلِ الْكِلاَبِ وَرَخَّصَ فِي كَلْبِ الصَّيْدِ وَالْغَنَمِ وَقَالَ ‏"‏ إِذَا وَلَغَ الْكَلْبُ فِي الإِنَاءِ فَاغْسِلُوهُ سَبْعَ مَرَّاتٍ وَعَفِّرُوهُ الثَّامِنَةَ بِالتُّرَابِ ‏"‏ ‏.‏

It was narrated from 'Abdullah bin Al-Mughaffal that the Messenger of Allah (PBUH) commanded that dogs be killed, but he made an exception for hunting dogs and sheepdogs and said: "If a dog licks a vessel then wash it seven times, and rub it the eighth time with dust." Translation Not Available

Book Ref: Sunan An Nisai Book 1 Hadith 67
Web Ref:  Sunan An Nisai Vol 1 Book 1 Hadith 67