The Messenger of Allah ﷺ said, "Jibreel came to me and said, 'I came to you yesterday, and nothing prevented me from entering the house you were in except that there was a figure of men at the door of the house, there was a curtain in the house with figures on it, and there was a dog in the house. So order that the head of the figure at the door be cut off so that it becomes like the form of a tree, order that the curtain be cut and made into two cushions strewn on the ground to be sat upon, and order that the dog be taken out.'"So the Messenger of Allah ﷺ did so. That dog was a puppy belonging to Hasan or Husayn, hidden under a piece of furniture of his, and he ordered it to be removed.
حدثنا سويد أخبرنا عبد الله بن المبارك أخبرنا يونس بن أبي إسحق حدثنا مجاهد قال حدثنا
قال رسول الله ﷺ أتاني جبريل فقال إني كنت أتيتك البارحة فلم يمنعني أن أكون دخلت عليك البيت الذي كنت فيه إلا أنه كان في باب البيت تمثال الرجال وكان في البيت قرام ستر فيه تماثيل وكان في البيت كلب فمر برأس التمثال الذي بالباب فليقطع فليصير كهيئة الشجرة ومر بالستر فليقطع ويجعل منه وسادتين منتبذتين يوطآن ومر بالكلب فيخرج ففعل رسول الله ﷺ وكان ذلك الكلب جروا للحسن أو الحسين تحت نضد له فأمر به فأخرج
[Its chain of transmission is sahih]Reference: Abu Dawud also narrated it in the Book of Clothing, chapter on images, no. 4158, from the hadith of Yunus with the same wording, and Ibn Hibban graded it sahih, no. 1487.There are also narrations on this subject from Ayesha [Bukhari, no. 3224, and Muslim, no. 2104] and Abu Talha [Bukhari, no. 3225, and Muslim, no. 2106].