I heard the Prophet (ﷺ) saying, "If someone keeps a dog neither for hunting, nor for guarding livestock, the reward (for his good deeds) will be reduced by two Qirats per day."
Sahih al-Bukhari Book 72, Hadith 7