Sunan Abi Dawud, Book 1, Hadith 227 (Abu Dawud 227)

Narrated Ali ibn AbuTalib:

The Prophet (ﷺ) said: Angels do not enter the house where there is a picture, or a dog, or a person who is sexually defiled.