Sahih al-Bukhari 3453, 3454
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لَعْنَةُ اللَّهِ عَلَى الْيَهُودِ وَالنَّصَارَى، اتَّخَذُوا قُبُورَ أَنْبِيَائِهِمْ مَسَاجِدَ "
Narrated `Aisha and Ibn `Abbas:
On his death-bed Allah's Messenger (ﷺ) put a sheet over his-face and when he felt hot, he would remove it from his face. When in that state (of putting and removing the sheet) he said, "May Allah's Curse be on the Jews and the Christians for they build places of worship at the graves of their prophets." (By that) he intended to warn (the Muslim) from what they (i.e. Jews and Christians) had done.
Full reference and source
Sahih al-Bukhari 3453, 3454 In-book : Book 60, Hadith 121 USC-MSA web (English) : Vol. 4, Book 55, Hadith 660 (deprecated)
View source on Sunnah.com (opens in a new tab)