Ayesha reported,

When the Prophet ﷺ fell ill, some of his wives mentioned a church they had seen in the land of Abyssinia called Mariya. Umm Salama and Umm Habiba رضي الله عنهم had been to the land of Abyssinia, and they spoke of its beauty and the images within it. He raised his head and said, "Those people, when a righteous man among them died, would build a place of worship over his grave and then make those images in it. They are the worst of creation in the sight of Allah."

Bukhari 1341

Sahih

حدثنا إسماعيل قال حدثني مالك عن هشام عن أبيه

عن عائشة رضي الله عنها قالت

لما اشتكى النبي ﷺ ذكرت بعض نسائه كنيسة رأينها بأرض الحبشة يقال لها مارية وكانت أم سلمة وأم حبيبة رضي الله عنهما أتتا أرض الحبشة فذكرتا من حسنها وتصاوير فيها فرفع رأسه فقال أولئك إذا مات منهم الرجل الصالح بنوا على قبره مسجدا ثم صوروا فيه تلك الصورة أولئك شرار الخلق عند الله

البخاري 1341صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Building a masjid over a grave
Numbering
Darussalam 1341
Bukhari 1341