Sahih Muslim, Book 22, Hadith 71 (Muslim 3994)

Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:

He who kept a dog would lose out of his deeds equal to one qirat every day. except (one kept) for watching the field or herd.