Sunan an-Nasa'i, Book 42, Hadith 24 (Nasa'i 4296)

It was narrated that Ibn 'Umar said:

"The Messenger of Allah said:' whoever keeps a dog except one that is trained for hunting or a dog for herding livestock, two Qirats will be deducted from his reward each day."