It is narrated from Sayyiduna Sufyan bin Abi Zuhayr (may Allah be pleased with him) that he heard the Messenger of Allah (peace and blessings be upon him) say: "Whoever keeps a dog that is of no use to him for crops or for livestock, a qirat is deducted from his deeds every day." Sayyiduna al-Sa'ib (may Allah be pleased with him) asked: "O Sufyan! Did you hear this yourself from the Messenger of Allah (peace and blessings be upon him)?" He said: "Yes, by the Lord of the Ka'bah."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6385