Sahih Muslim, Book 22, Hadith 63 (Muslim 3986)

Salim reported on the authority of his father that Allah's Apostle (ﷺ) said:

He who kept a dog other than one meant for hunting or for watching the herd, lost two qirat of his reward every day.