Sunan an-Nasa'i, Book 42, Hadith 26 (Nasa'i 4298)

It was narrated from 'Abdullah bin Mughaffal that the Prophet said:

"Whoever keeps a dog, except a dog for hunting, herding livestock or farming, one Qurat will be deducted from his reward each day."