Sahih al-Bukhari, Book 77, Hadith 176 (Bukhari 5732)

Narrated Salim's father:

Once Gabriel promised to visit the Prophet (ﷺ) but he delayed and the Prophet (ﷺ) got worried about that. At last he came out and found Gabriel and complained to him of his grief (for his delay). Gabriel said to him, "We do not enter a place in which there is a picture or a dog."