Sahih al-Bukhari, Book 72, Hadith 8 (Bukhari 5270)

Narrated `Abdullah bin `Umar:

Allah's Messenger (ﷺ) said, "If someone keeps a dog neither for guarding livestock, nor for hunting, his good deeds will decrease (in reward) by two Qirats a day.'