Ayesha reported,

The Prophet ﷺ said during the illness in which he died, "May Allah curse the Jews and the Christians, for they took the graves of their prophets as places of worship."She said, "Were it not for that, his grave would have been made prominent, but I fear it would be taken as a place of worship."

Azami 3816

Sahih

عن عائشة

عن النبي ﷺ قال في مرضه الذي مات فيه: لعن الله اليهود والنصارى اتخذوا قبور أنبيائهم مسجدا. قالت: ولولا ذلك لأبرزوا قبره غير أني أخشى أن يتخذ مسجدا.

الأعظمي 3816صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Graves
Section
Grave of the Prophet ﷺ and Abu Bakr and Umar رضي الله عنهم
Numbering
Jami al-Kamil 3816 (2nd edition)
Azami 3816