The Prophet ﷺ said, "Jibreel had promised to meet me last night, but he did not come to me." Then it occurred to him that there was a puppy under a mat of ours, so he ordered that it be removed, and it was taken out. He then took some water in his hand and sprinkled it over the spot.When Jibreel
later met him, he said, "We do not enter a house in which there is a dog or an image."The next morning, the Prophet ﷺ ordered that dogs be killed, to the point that he commanded the killing of the dog kept in a small garden, while sparing the dog kept in a large garden.
حدثنا أحمد بن صالح حدثنا ابن وهب أخبرني يونس عن ابن شهاب عن ابن السباق عن ابن عباس قال
أن النبي ﷺ قال إن جبريل عليه السلام كان وعدني أن يلقاني الليلة فلم يلقني ثم وقع في نفسه جرو كلب تحت بساط لنا فأمر به فأخرج ثم أخذ بيده ماء فنضح به مكانه فلما لقيه جبريل عليه السلام قال إنا لا ندخل بيتا فيه كلب ولا صورة فأصبح النبي ﷺ فأمر بقتل الكلاب حتى إنه ليأمر بقتل كلب الحائط الصغير ويترك كلب الحائط الكبير
Muslim narrated it in the chapter on clothing, in the section on the prohibition of depicting images of animals, etc., hadith no. 2105, from the hadith of Ibn Wahb, with this wording.