Sahih al-Bukhari 435, 436
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 `Abdullah bin `Abbas:
When the last moment of the life of Allah's Messenger (ﷺ) came he started putting his 'Khamisa' on his face and when he felt hot and short of breath he took it off his face and said, "May Allah curse the Jews and Christians for they built the places of worship at the graves of their Prophets." The Prophet (ﷺ) was warning (Muslims) of what those had done.
Full reference and source
Sahih al-Bukhari 435, 436 In-book : Book 8, Hadith 85 USC-MSA web (English) : Vol. 1, Book 8, Hadith 427 (deprecated)
View source on Sunnah.com (opens in a new tab)