Ayesha reported,

The Messenger of Allah ﷺ said during the illness from which he never recovered, "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 he feared that it would be taken as a place of worship."

Azami 9337

Sahih

عن عائشة قالت

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

الأعظمي 9337صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Nearness of his death, his foretelling of it, his passing, and his burial
Section
Last words of advice the Prophet ﷺ gave during his final illness
Numbering
Jami al-Kamil 9337 (2nd edition)
Azami 9337