Sunan an-Nasa'i, Book 42, Hadith 28 (Nasa'i 4300)

It was narrated from Abu Hurairah that the Messenger of Allah said:

"Whoever keeps a dog that is not a dog used for hunting, herding livestock or guarding land, two qirats will be deducted from his reward each day."