All perfect praise be to Allaah, The Lord of the worlds. I testify that there is none worthy of worship except Allaah and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
This report was cited by Ibn ‘Abd Al-Barr as a Mawqoof report (a hadeeth that stops at the level of a Companion) and attributed it to Ibn ‘Abbaas . Ibn Muflih also cited it in his book Al-Aadaab Ash-Shar‘iyyah and attributed it to Ibn ‘Abd Al-Barr. He commented on it that some scholars classified it as a Marfoo' hadeeth (attributable directly to the Prophet, sallallaahu ‘alayhi wa sallam). Ibn Muflih did not cite the ahaadeeth and reports in his book Al-Aadaab Ash-Shar‘iyyah along with their chain of narration. Rather, he cited the ahaadeeth and reports and mentioned the Hadeeth books in which they were cited.
We did not find any narration of this report classified as a Marfoo’ hadeeth attributed directly to the Prophet, sallallaahu ‘alayhi wa sallam, and we did not find any statement of Hadeeth scholars declaring it authentic or inauthentic. In fact, Ibn ‘Abd Al-Barr himself cited it in the form of uncertainty (Seeghat At-Tamreedh, namely the passive voice, like by saying, 'it was said', 'it was narrated'), which is used by some scholars to indicate the inauthenticity of the ahaadeeth and reports.
Even if this report is proven authentic, it does not contradict the enjoined kindness towards animals. The report enjoined chasing the dog away so as to avoid the evil eye but at the same time commanded feeding it.
Dogs are not all evil and harmful; rather, there are some benefits in them as well. Ibn Qutaybah wrote, “There are benefits in dogs for people; in guarding their houses, cattle, and crops, and in hunting. Many Bedouins and desert people cannot secure food nor make a living without dogs. Allaah, The Exalted, says (what means): {So, eat of what they catch for you...} [Quran 5:4] This is proof that Allaah, The Exalted, has created them for our benefit...” [Ta'weel Mukhtalaf Al-Hadeeth]
Allaah knows best.