I heard the Messenger of Allah ﷺ say, "The angels do not enter a house in which there is a dog or images of figures."
حدثنا سلمة بن شبيب والحسن بن علي الخلال وعبد بن حميد وغير واحد واللفظ للحسن بن علي قالوا حدثنا عبد الرزاق أخبرنا معمر عن الزهري عن عبيد الله بن عبد الله بن عتبة أنه سمع ابن عباس يقول سمعت
سمعت رسول الله ﷺ يقول لا تدخل الملائكة بيتا فيه كلب ولا صورة تماثيل
Agreed upon by Bukhari and Muslim. Muslim reported it in the Book of Clothing and Adornment, chapter on the prohibition of depicting images of animate beings and the prohibition of using anything containing such images, etc., hadith no. 2106, from Abd bin Humayd, and Bukhari, hadith no. 3225, from the hadith of Mamar, with the same wording.