Sahih al-Bukhari
Sahih al-Bukhari 4443, 4444
وَأَخْبَرَنِي عُبَيْدُ اللَّهِ بْنُ عَبْدِ اللَّهِ بْنِ عُتْبَةَ، أَنَّ عَائِشَةَ، وَعَبْدَ اللَّهِ بْنَ عَبَّاسٍ، رضى الله عنهم قَالاَ لَمَّا نَزَلَ بِرَسُولِ اللَّهِ صلى الله عليه وسلم طَفِقَ يَطْرَحُ خَمِيصَةً لَهُ عَلَى وَجْهِهِ، فَإِذَا اغْتَمَّ كَشَفَهَا عَنْ وَجْهِهِ وَهْوَ كَذَلِكَ يَقُولُ " لَعْنَةُ اللَّهِ عَلَى الْيَهُودِ وَالنَّصَارَى، اتَّخَذُوا قُبُورَ أَنْبِيَائِهِمْ مَسَاجِدَ ". يُحَذِّرُ مَا صَنَعُوا.
Ubaydullah ibn Abdullah ibn Utba informed me that Aisha and Abdullah ibn Abbas (may Allah be pleased with them) said: When the Messenger of Allah’s final illness came upon him, he began placing a striped cloak over his face. When distressed, he would uncover his face, and in that state he said, “May Allah’s curse be upon the Jews and Christians: they took the graves of their prophets as mosques.” He was warning against what they had done.
Translation notes
The report says the Prophet covered and uncovered his face with a cloak during the illness and explicitly identifies the saying as a warning against the practice described.