Ayesha reported,

Aisha reported that the Messenger of Allah ﷺ said during his final illness, "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 visible, but I fear it would be taken as a place of worship." This is how it appears in Bukhari's narration.In Muslim's narration, she said, "Were it not for that, his grave would have been made visible, but it was feared that it would be taken as a place of worship." The word khushiya is read with a damma on the kha.

Azami 3093

Sahih

عن عائشة قالت

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

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