“The Messenger of Allah ﷺ said: ‘Whoever keeps a dog, one Qirat will be deducted from him (good) deeds every day, except a dog for farming or herding livestock.” (Using translation from Ibn Mājah 3204)
قَالَ رَسُولُ اللهِ ﷺ مَنِ اقْتَنَى كَلْبًا إِلَّا ضَارِيًا أَوْ كَلْبَ مَاشِيَةٍ فَإِنَّهُ يَنْقُصُ مِنْ أَجْرِهِ كُلَّ يَوْمٍ قِيرَاطَانِ