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." (DE)
English reference (DE): Vol. 4, Book 28, Hadith 3204 (DE)
Arabic reference (DE): Book 28, Hadith 3325 (DE)