Abu Hurairah reported,

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.

Tirmidhi 2806

Sahih

حدثنا سويد أخبرنا عبد الله بن المبارك أخبرنا يونس بن أبي إسحق حدثنا مجاهد قال حدثنا

أبو هريرة قال

قال رسول الله ﷺ أتاني جبريل فقال إني كنت أتيتك البارحة فلم يمنعني أن أكون دخلت عليك البيت الذي كنت فيه إلا أنه كان في باب البيت تمثال الرجال وكان في البيت قرام ستر فيه تماثيل وكان في البيت كلب فمر برأس التمثال الذي بالباب فليقطع فليصير كهيئة الشجرة ومر بالستر فليقطع ويجعل منه وسادتين منتبذتين يوطآن ومر بالكلب فيخرج ففعل رسول الله ﷺ وكان ذلك الكلب جروا للحسن أو الحسين تحت نضد له فأمر به فأخرج

الترمذي 2806صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Manners
Chapter
Angels not entering a house that contains an image or a dog
Numbering
Darussalam 2806
Tirmidhi 2806