Ayesha and Abdullah bin Abbas reported,

When the Messenger of Allah ﷺ was overcome by the throes of death, he began to draw a cloak of his over his face, and when he felt distressed by it, he would uncover his face. While in that state, he said, "May the curse of Allah be upon the Jews and the Christians, for they took the graves of their prophets as places of worship."

Nasai 704

Sahih

أخبرنا سويد بن نصر قال أنبأنا عبد الله بن المبارك عن معمر ويونس قالا قال الزهري أخبرني عبيد الله بن عبد الله أن

عائشة وابن عباس قالا

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

النسائي 704صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Mosques
Chapter
Prohibition of taking graves as mosques
Numbering
Darussalam 704
Nasai 704