Sahih Muslim, Book 22, Hadith 62 (Muslim 3985)

Ibn Umar (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:

He who keeps a dog other than that meant for watching the herd or for hunting loses every day out of his deeds equal to two qirat.