“I heard the Prophet (ﷺ) say: ‘Whoever keeps a dog that he does not need for farming or herding, one Qirat will be deducted from his (good) deeds each day.’”
Sunan Ibn Majah Book 28, Hadith 7