The Prophet (peace be on him) said, Jibril came to me and said, 'I came to you yesterday but what stopped me from entering was that there was a statue at the door, a curtain with figures on it in the house, and a dog inside the house. So order that the head of the statue be broken off so that it resembles the trunk of tree, that the curtain be cut and made into two pillows to recline on, and that the dog be taken out.'

This prohibition is limited to keeping dogs without need or benefit.