The Messenger of Allah ﷺ said, "The angels do not enter a house in which there is an image."Busr said, "Then Zayd fell ill, so we visited him, and there was a curtain on his door with an image on it. I said to Ubaydullah Khawlani, 'Did Zayd not tell us about images the other day?'"Ubaydullah replied, "Did you not hear him say, 'Except for a pattern on a cloth'?"
أخبرنا عيسى بن حماد قال حدثنا الليث قال حدثني بكير عن بسر بن سعيد عن زيد بن خالد
أن رسول الله ﷺ قال لا تدخل الملائكة بيتا فيه صورة قال بسر ثم اشتكى زيد فعدناه فإذا على بابه ستر فيه صورة قلت لعبيد الله الخولاني ألم يخبرنا زيد عن الصورة يوم الأول قال قال عبيد الله ألم تسمعه يقول إلا رقما في ثوب
Bukhari narrated it in the Book of Dress, Chapter on those who disliked sitting on images, hadith no. 5958, and Muslim in the Book of Dress, Chapter on the prohibition of depicting images of animals, etc., hadith no. 85/2106, from the hadith of Layth bin Saad, with the same chain.