Sahih Muslim 1575 b
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنِ اتَّخَذَ كَلْبًا إِلاَّ كَلْبَ مَاشِيَةٍ أَوْ صَيْدٍ أَوْ زَرْعٍ انْتَقَصَ مِنْ أَجْرِهِ كُلَّ يَوْمٍ قِيرَاطٌ "
Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:
He who kept a dog except one meant for watching the herd, or for hunting or for watching the fields. he lost two qirat of reward every day. Zuhri said: The words of Abu Huraira (Allah be pleased with him) were conveyed to Ibn Umar who said: May Allah have mercy upon Abu Huraira; he owned a field.
Full reference and source
Sahih Muslim 1575 b In-book : Book 22, Hadith 70 USC-MSA web (English) : Book 10, Hadith 3823 (deprecated)
View source on Sunnah.com (opens in a new tab)