Ibn 'Umar reported Allah's Messenger (ﷺ) as saying He who kept a dog other than one meant…

Sahih Muslim Book 22 Hadith 64

Sahih Muslim #1574 c

The Book of Musaqah 22:64

Ibn 'Umar reported Allah's Messenger (ﷺ) as saying He who kept a dog other than one meant for hunting or for watching the herd lost out of his deeds (equal to) two qirat every day.

Chapter: The command to kill dogs, and its abrogation. The prohibition of keeping dogs, except for hunting, farming, (herding) livestock and the like

Grade: Sahih