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