(7) بَابُ إِذَا قَالَ أَحَدُكُمْ آمِينَ. وَالْمَلاَئِكَةُ فِي السَّمَاءِ، فَوَافَقَتْ إِحْدَاهُمَا الأُخْرَى، غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ
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."
Reference: Sahih al-Bukhari 3227
In-book reference: Book 59, Hadith 38
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 4, Book 54, Hadith 450