(10) بَاب الْأَمْرِ بِقَتْلِ الْكِلَابِ وَبَيَانِ نَسْخِهِ وَبَيَانِ تَحْرِيمِ اقْتِنَائِهَا إِلَّا لِصَيْدٍ أَوْ زَرْعٍ أَوْ مَاشِيَةٍ وَنَحْوِ ذَلِكَ
Salim b. 'Abdullah reported on the authority of his father that Allah's Messenger (ﷺ) said:
He who kept a dog other than one meant for watching the herd or for hunting would lose every day two qirat of his good deeds. 'Abdullah and Abu Huraira also said: Or dog meant for watching the field.
Reference: Sahih Muslim 1574 d
In-book reference: Book 22, Hadith 65
USC-MSA web (English) reference(deprecated numbering scheme): Book 10, Hadith 3818