Sahih al-Bukhari, Book 72, Hadith 6 (Bukhari 5268)

Narrated Ibn `Umar:

The Prophet (ﷺ) said, "Whoever keeps a (pet) dog which is neither a watch dog nor a hunting dog, will get a daily deduction of two Qirat from his good deeds."