Abu Hurairah reported,

The Messenger of Allah ﷺ said, "May Allah curse the Jews and the Christians, for they took the graves of their prophets as places of worship."

Muslim 1186

Sahih

و حدثني قتيبة بن سعيد حدثنا الفزاري عن عبيد الله بن الأصم حدثنا يزيد بن الأصم

عن أبي هريرة

أن رسول الله ﷺ قال لعن الله اليهود والنصارى اتخذوا قبور أنبيائهم مساجد

مسلم 1186صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Prohibition of building mosques over graves, placing images in them, and taking graves as mosques
Numbering
Darussalam 1186
Muslim 1186