(10) بَاب الْأَمْرِ بِقَتْلِ الْكِلَابِ وَبَيَانِ نَسْخِهِ وَبَيَانِ تَحْرِيمِ اقْتِنَائِهَا إِلَّا لِصَيْدٍ أَوْ زَرْعٍ أَوْ مَاشِيَةٍ وَنَحْوِ ذَلِكَ
Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:
He who kept a dog would lose out of his deeds equal to one qirat every day. except (one kept) for watching the field or herd.
Reference: Sahih Muslim 1575 c
In-book reference: Book 22, Hadith 71
USC-MSA web (English) reference(deprecated numbering scheme): Book 10, Hadith 3824