He who kept a dog other than one meant for hunting or for the protection of the herd would…

Sahih Muslim Book 22 Hadith 66

Sahih Muslim #1574 e

The Book of Musaqah 22:66

Salim reported on the authority of his father (Allah be pleased with him) that Allah's Messenger (ﷺ) said:

He who kept a dog other than one meant for hunting or for the protection of the herd would lose two qirat of his deeds every day. Salim said: Abu Huraira (Allah be pleased with him) used to say: Or the dog meant for watching the field, and he was the owner of the land.

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