It was narrated from 'Abdullah bin 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.
Authentic