Jami' at-Tirmidhi
Jami` at-Tirmidhi 1488
حَدَّثَنَا قُتَيْبَةُ، حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ، عَنْ عَمْرِو بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم أَمَرَ بِقَتْلِ الْكِلاَبِ إِلاَّ كَلْبَ صَيْدٍ أَوْ كَلْبَ مَاشِيَةٍ . قَالَ قِيلَ لَهُ إِنَّ أَبَا هُرَيْرَةَ كَانَ يَقُولُ أَوْ كَلْبَ زَرْعٍ . فَقَالَ إِنَّ أَبَا هُرَيْرَةَ لَهُ زَرْعٌ . قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ .
Unreviewed translation. All hadiths in this collection are available in five languages. Titles and introductions may remain in Arabic.
Ibn Umar narrated: The Messenger of Allah ordered that dogs be killed, except for hunting dogs and livestock-guarding dogs. Someone said to him: Abu Hurayrah used to say, or a dog for guarding crops. Ibn Umar replied: Abu Hurayrah had crops. Abu Isa said: This hadith is hasan sahih.
Notes and open questions — unreviewed
The exchange explains why Abu Hurayrah included an exception for crop-guarding dogs.