It is narrated from Sayyiduna Usamah bin Zayd (may Allah be pleased with him) that he said: "I came to the Messenger of Allah (peace and blessings be upon him) and he (peace and blessings be upon him) was grieved. I asked him (peace and blessings be upon him) the reason for it, and he (peace and blessings be upon him) said: 'Jibril (peace be upon him) has not come to me for three days.'" He said: (Then it was looked into, and) there was a puppy among his (peace and blessings be upon him) houses. So he (peace and blessings be upon him) gave an order concerning it and it was killed. Then Jibril (peace be upon him) appeared before him (peace and blessings be upon him), and when the Messenger of Allah (peace and blessings be upon him) saw him, he moved towards him joyfully and asked: "Why did you not come to me?" He said: "Indeed, we (the angels) do not enter a house in which there is a dog or pictures."
And Imam Ahmad (may Allah have mercy on him) also narrated it through Husayn (may Allah have mercy on him), from Ibn Abi Dhi'b (may Allah have mercy on him), with the like of it.