Sahih Muslim, Book 22, Hadith 74 (Muslim 3997)

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

He who kept a dog, but not meant for hunting or watching the herd, would lose one qirat of reward every day.