It wasnarrated that Abu Hurairah said:
"The Messenger of Allah (ﷺ)said: 'Whoever keeps a dog, one Qirat will be deducted from him(good)deeds every day, except a dog for farming or herdinglivestock." (PT)
English reference (PT): Vol. 4, Book 28, Hadith 3204 (PT)
Arabic reference (PT): Book 28, Hadith 3325 (PT)