It was narrated from ‘Abdullah bin Al-Mughaffal that the Messenger of Allah صلی اللہ علیہ وآلہ وسلم commanded that dogs be killed, but he made an exception for hunting dogs and sheepdogs and said: “If a dog licks a vessel then wash it seven times, and rub it the eighth time with dust.” (Sahih)