Sunan an-Nasa'i #4285
The Book of Hunting and Slaughtering 42:23
As-Saib bin Yazid narrated that Surfyan bin Abi Zuhair Ash-Shanai I came to visit them and said:
"The Messenger of Allah said: 'Whoever keeps a dog which he does not need for farming or livestock, one Qirt will be deducted from his (good) deeds each day.'It was said to him: 'did you hear this from the Messenger of Allah He said: 'Yes, by the Lord of this Masjid."'