Musnad Ahmad 845
It was narrated that ‘Ali (رضي الله عنه) said:
I used to come to the Messenger of Allah (ﷺ) every morning. If he cleared his throat, I would enter, and if he remained silent, I would not enter. He came out to me (on one occasion) and said: “Something happened last night. I heard some movement in the house, then I saw Jibreel (عليه السلام). I said: ‘What prevented you from entering the house?` He said: “In the house there is a dog.` I went in and I saw a puppy belonging to al-Hasan beneath a chair of ours. He [Jibreel] said: “The angels do not enter a house if there are three things in it: a dog or an image or a person who is junub.`
حَدَّثَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا سُفْيَانُ، عَنْ جَابِرٍ، عَنْ عَبْدِ اللَّهِ بْنِ نُجَيٍّ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ قَالَ كُنْتُ آتِي رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كُلَّ غَدَاةٍ فَإِذَا تَنَحْنَحَ دَخَلْتُ وَإِذَا سَكَتَ لَمْ أَدْخُلْ قَالَ فَخَرَجَ إِلَيَّ فَقَالَ حَدَثَ الْبَارِحَةَ أَمْرٌ سَمِعْتُ خَشْخَشَةً فِي الدَّارِ فَإِذَا أَنَا بِجِبْرِيلَ عَلَيْهِ السَّلَام فَقُلْتُ مَا مَنَعَكَ مِنْ دُخُولِ الْبَيْتِ فَقَالَ فِي الْبَيْتِ كَلْبٌ قَالَ فَدَخَلْتُ فَإِذَا جَرْوٌ لِلْحَسَنِ تَحْتَ كُرْسِيٍّ لَنَا قَالَ فَقَالَ إِنَّ الْمَلَائِكَةَ لَا يَدْخُلُونَ الْبَيْتَ إِذَا كَانَ فِيهِ ثَلَاثٌ كَلْبٌ أَوْ صُورَةٌ أَوْ جُنُبٌ‏.‏