Yahya related to me from Malik from Zayd ibn Aslam from Ata ibn Yasar that the Messenger of Allah ﷺ said, "O Allah! Do not make my grave an idol that is worshipped. The anger on those who took the graves of their Prophets as places of prostration was terrible."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ اللَّهُمَّ لاَ تَجْعَلْ قَبْرِي وَثَنًا يُعْبَدُ اشْتَدَّ غَضَبُ اللَّهِ عَلَى قَوْمٍ اتَّخَذُوا قُبُورَ أَنْبِيَائِهِمْ مَسَاجِدَ