Ayesha reported,

Umm Habiba and Umm Salama mentioned to the Prophet ﷺ a church they had seen in Abyssinia which contained images. He said, "When a righteous man among those people died, they would build a place of worship over his grave and paint these images in it. They are the worst of creation before Allah on the Day of Resurrection."

Azami 3095

Sahih

عن عائشة

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

الأعظمي 3095صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Mosques
Section
Prohibition of taking a grave as a masjid
Numbering
Jami al-Kamil 3095 (2nd edition)
Azami 3095