That the Messenger of Allah (ﷺ) said: "Whoever acquires a dog - with the exception of a dog to guard livestock, a hunting dog, or a farm dog - each day a Qirat is deducted from his reward."
Jami` at-Tirmidhi Book 18, Hadith 32