Jami` at-Tirmidhi, Book 18, Hadith 32 (Tirmidhi 1517)
Narrated Abu Hurairah:
That the Messenger of Allah (ﷺ) said: "Whoever acquires a dog - with the exception of a dog to guard livestock, a hunting dog, or a farm dog - each day a Qirat is deducted from his reward."