Sahih al-Bukhari, Book 59, Hadith 38 (Bukhari 3094)

Narrated Salim's father:

Once Gabriel promised the Prophet (that he would visit him, but Gabriel did not come) and later on he said, "We, angels, do not enter a house which contains a picture or a dog."