From Sahih Bukhari (Hadith 5481):
Narrated `Abdullah bin `Umar: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
Reference: Bukhari 5481