Riyad as-Salihin #1689 · The Book of the Prohibited actions

Riyad as-SalihinAbu Hurayra
Riyad as-Salihin · Book 18 · The Book of the Prohibited actions
Riyad as-Salihin · كتاب 18 · كتاب الأمور المنهي عنها
The Messenger of Allah (صلى الله عليه وسلم) said, "He who keeps a dog, will lose out of his good deeds equal to one Qirat every day, except one who keeps it for guarding the fields or the herd." [Al-Bukhari and Muslim] . In a narration of Muslim, the Messenger of Allah (صلى الله عليه وسلم) is reported to have said: "He who keeps a dog for any reason other than to guard his property (lands) or his flock of sheep, his good deeds equal to two Qirat will be deducted every day."
وعن أبي هريرة رضي الله عنه قال: قال رسول الله صلى الله عليه وسلم :
"من أمسك كلبًا فإنه ينقص كل يوم من عمله قيراط إلا كلب حرث أو ماشية" ((متفق عليه)). وفي رواية لمسلم: "من اقتنى كلبًا ليس بكلب صيد، ولا ماشية ولا أرض، فإنه ينقص من أجره قيراطان كل يوم".
Reference : Riyad as-Salihin 1689In-book reference : Book 18, Hadith 179