Sayyiduna Abdullah bin Amr (may Allah be pleased with him) reports this saying of the Prophet (peace and blessings be upon him): "Whoever keeps a dog that is not for hunting or for (guarding) livestock, one qirat is deducted from his deeds every day."
Al-Tabarani recorded it in al-Mu'jam al-Kabir and al-Mu'jam al-Awsat; its chain contains a narrator, Bujayr bin Abi Bujayr; al-Mizzi says after a hadith he narrated through his chain: It is a hasan (good) hadith. The remaining narrators of this report are the narrators of the Sahih. (Allamah al-Haythami says:) I say: The hadith reported from Sayyiduna Abu Rafi' (may Allah be pleased with him) has already passed: (The people said:) Of this kind of creature which you have ordered to be killed, what is lawful for us? So Allah Almighty revealed this verse: "They ask you what has been made lawful for them."