Jami` at-Tirmidhi, Book 18, Hadith 29 (Tirmidhi 1514)

Narrated Ibn 'Umar:

That the Messenger of Allah (ﷺ) said: "Whoever keeps a dog" - or: "acquires a dog" - "neither of hunting nor to guard livestock, then two Qirat are deducted from his reward, daily."