Language:
كتاب الصلاة
8  
Prayers (Salat)
(54)
Chapter: To offer As-Salat (the prayer) in a church or in a temple etc.
(54)
باب الصَّلاَةِ فِي الْبِيعَةِ
Sahih al-Bukhari 434

Narrated `Aisha:

Um Salama told Allah's Messenger (ﷺ) about a church which she had seen in Ethiopia and which was called Mariya. She told him about the pictures which she had seen in it. Allah's Messenger (ﷺ) said, "If any righteous pious man dies amongst them, they would build a place of worship at his grave and make these pictures in it; they are the worst creatures in the sight of Allah."

حَدَّثَنَا مُحَمَّدٌ، قَالَ أَخْبَرَنَا عَبْدَةُ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ، أَنَّ أُمَّ سَلَمَةَ، ذَكَرَتْ لِرَسُولِ اللَّهِ صلى الله عليه وسلم كَنِيسَةً رَأَتْهَا بِأَرْضِ الْحَبَشَةِ يُقَالُ لَهَا مَارِيَةُ، فَذَكَرَتْ لَهُ مَا رَأَتْ فِيهَا مِنَ الصُّوَرِ، فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ أُولَئِكَ قَوْمٌ إِذَا مَاتَ فِيهِمُ الْعَبْدُ الصَّالِحُ ـ أَوِ الرَّجُلُ الصَّالِحُ ـ بَنَوْا عَلَى قَبْرِهِ مَسْجِدًا، وَصَوَّرُوا فِيهِ تِلْكَ الصُّوَرَ، أُولَئِكَ شِرَارُ الْخَلْقِ عِنْدَ اللَّهِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 434
In-book reference : Book 8, Hadith 84
USC-MSA web (English) reference : Vol. 1, Book 8, Hadith 426
  (deprecated numbering scheme)