Ayesha and Abdullah bin Abbas reported,

When the Messenger of Allah ﷺ was in the throes of death, he began throwing a cloak of his over his face, and whenever he felt suffocated by it, he would uncover his face. While in that state, he said, "May Allah curse the Jews and the Christians, for they took the graves of their prophets as places of worship," warning against what they had done.

Bukhari 435

Sahih

حدثنا أبو اليمان قال أخبرنا شعيب عن الزهري أخبرني عبيد الله بن عبد الله بن عتبة أن

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

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

البخاري 435صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer
Chapter
Prayer in churches
Numbering
Darussalam 435
Bukhari 435