Sunan an-Nasa'i #4288
The Book of Hunting and Slaughtering 42:26
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."