When the Messenger of Allah ﷺ was in the throes of death, he began to throw a cloak of his over his face. Whenever he felt suffocated, he would uncover it. While in that state, he said, "May Allah's curse be upon the Jews and the Christians. They took the graves of their prophets as places of worship," warning against what they had done.
حدثني يحيى بن بكير حدثنا الليث عن عقيل عن ابن شهاب قال أخبرني عبيد الله بن عبد الله بن عتبة أن
لما نزل برسول الله ﷺ طفق يطرح خميصة له على وجهه فإذا اغتم كشفها عن وجهه فقال وهو كذلك لعنة الله على اليهود والنصارى اتخذوا قبور أنبيائهم مساجد يحذر ما صنعوا