It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) in another narration as follows: "Except for a dog used for hunting or guarding livestock."