Sayyiduna Ali (may Allah be pleased with him) narrates: I used to visit the Prophet (peace and blessings be upon him) at a specific time during the night, from which Allah granted me great benefit. On one occasion, the Prophet (peace and blessings be upon him) said: "Angels do not enter a house in which there is a dog, a person in a state of major impurity (junub), or any picture or statue." I looked and saw a puppy under the bed, which belonged to Hasan. I took it out.
Hadith Referenceمسند احمد / مسند الخلفاء الراشدين / 1290