(10) بَاب الْأَمْرِ بِقَتْلِ الْكِلَابِ وَبَيَانِ نَسْخِهِ وَبَيَانِ تَحْرِيمِ اقْتِنَائِهَا إِلَّا لِصَيْدٍ أَوْ زَرْعٍ أَوْ مَاشِيَةٍ وَنَحْوِ ذَلِكَ
Salim b. Abdullah reported on the authority of his father that Allah's Messenger (ﷺ) said:
Whosover amongst the owners of the house keeps a dog other than one meant for watching the herd or for hunting loses two qirat of his deeds every day.
Reference: Sahih Muslim 1574 f
In-book reference: Book 22, Hadith 67
USC-MSA web (English) reference(deprecated numbering scheme): Book 10, Hadith 3820