Sahih Muslim, Book 22, Hadith 64 (Muslim 3987)

Ibn 'Umar reported Allah's Messenger (ﷺ) as saying He who kept a dog other than one meant for hunting or for watching the herd lost out of his deeds (equal to) two qirat every day.