Sunan Abi Dawud, Book 34, Hadith 133 (Abu Dawud 4153)

Narrated Ali ibn AbuTalib:

The Prophet (ﷺ) said: The angels do not enter a house which contains a picture, a dog, or a man who is impure by sexual defilement.