Ayesha and Abdullah bin Abbas reported,

When the final illness descended upon the Messenger of Allah ﷺ, he began to throw a striped cloak over his face, and when he felt suffocated, he would uncover his face. While in that state, he said, "May Allah curse the Jews and the Christians. They took the graves of their prophets as places of worship," warning against what they had done.

Bukhari 3453-3454

Sahih

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

عائشة وابن عباس رضي الله عنهم قالا

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

البخاري 3453-3454صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Hadiths of the prophets
Chapter
Children of Israil
Numbering
Darussalam 3453-3454
Bukhari3453 3453-3454