Sunan an-Nasa'i, Book 42, Hadith 25 (Nasa'i 4297)

It was narrated from Salim, from his father, that the Messenger of Allah said:

"Whoever keeps a dog. Except a dog for hunting or herding livestock, two Qirats will be deducted from his reward each day."