I had a special time with the Messenger of Allah ﷺ at night, through which Allah would benefit me in whatever way He willed.Ali said, "The Messenger of Allah ﷺ said, 'The angels do not enter a house in which there is an image, a dog, or a person in a state of major ritual impurity.'"Ali said, "I looked, and there was a puppy belonging to Hasan bin Ali under the bed, so I took it out."
حدثنا محمد بن جعفر حدثنا شعبة عن جابر قال سمعت عبد الله بن نجي يحدث
كانت لي ساعة من رسول الله ﷺ من الليل ينفعني الله عز وجل بما شاء أن ينفعني بها قال فقال رسول الله ﷺ لا تدخل الملائكة بيتا فيه صورة ولا كلب ولا جنب قال فنظرت فإذا جرو للحسن بن علي تحت السرير فأخرجته
Its chain of transmission is very daif, because of Jabir Jafi, and because it is disconnected, since Abdullah bin Najiyy did not hear from Ali. It is an abridgment of 845. The hadith previously came connected and sahih at 1172. See also 1269.