It was narrated from "Abdullah bin Nujayy al-Hadrami that his father said:
"Ali (رضي الله عنه) said to me: I had a status with the Messenger of Allah (ﷺ) that no one else had. l used to come to him every morning before dawn and greet him with salam until he cleared his throat. One night I came in and greeted him with salam. I said: Peace be upon you, O Prophet of Allah. He said: “Wait a moment, O Abu Hasan, until I come out to you.” When he came out to me, I said: O Prophet of Allah, has someone upset you? He said: "No." I said: Why did you not speak to me in the past, but you spoke to me tonight? He said: "I heard a sound in the room and said: ‘Who is this?" He said: "I am jibreel.“ I said: "Come in. He said: ‘No; come out to me." When I came out he said: "In your house there is something that no angel will enter so long as it is there." I said: “I did not know, O Jibreel.” He said: "Go and look "So I opened the door and I did not find anything apart from a puppy that al-Hasan had been playing with. I said: "I did not find anything except a puppy." He said: "There are three things, no angel will enter so long as one of them is in the house: a dog, major impurity or an image of an animate being.”