BAYHAQI 11027:
from Banī Muʿāwiyah Fanabaḥat ʿAlaynā Kilāb —
[Machine] I heard the Messenger of Allah ﷺ saying, "Whoever owns a dog, except for a dog used for herding animals or farming, will have two Qirats deducted from his reward every day." This narration is reported by Abdullah ibn Dinar in a Sahih Hadith from another source.
البيهقي ١١٠٢٧:
عن بني معاويه فنبحت علينا كلاب —
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ مَنِ اقْتَنَى كَلْبًا إِلَّا كَلْبَ ضَارِيَةٍ أَوْ مَاشِيَةٍ نَقَصَ مِنْ أَجْرِهِ كُلَّ يَوْمٍ قِيرَاطَانِ أَخْرَجَاهُ فِي الصَّحِيحِ مِنْ وَجْهٍ آخَرَ عَنْ عَبْدِ اللهِ بْنِ دِينَارٍ
hadithunlocked.com