Hadith on Idolatry: O Allah, do not make my grave an idol

Abu Huraira reported: The Prophet, peace and blessings be upon him, said, “O Allah, do not turn my grave into an idol that is worshiped. Allah has cursed people who take the graves of their prophets as places of worship.

Source: Musnad Aḥmad 7311

Grade: Sahih (authentic) according to Ahmad Shakir

Ibn Abdul Barr said, “The Messenger of Allah (ṣ) warned his companions and the rest of his nation from the evil deeds of nations before them, who prayer over the graves of their prophets and took them directions and places of prayer, just as the idolaters used to prostrate them and glorify them. That is the greater idolatry. The Prophet (ṣ) told them that it displeases Allah, angers him, and he is not satisfied  with it, fearing that they would mimic their ways.”

Source: Fatḥ al-Bārī li-Ibn Rajab 435

عَنْ أَبِي هُرَيْرَةَ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ اللَّهُمَّ لَا تَجْعَلْ قَبْرِي وَثَنًا لَعَنَ اللَّهُ قَوْمًا اتَّخَذُوا قُبُورَ أَنْبِيَائِهِمْ مَسَاجِدَ

7311 مسند أحمد بن حنبل

13/88 المحدث أحمد شاكر خلاصة حكم المحدث إسناده صحيح في مسند أحمد

قَالَ ابْنُ عَبْدِ الْبَرِّ وَكَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يُحَذِّرُ أَصْحَابَهُ وَسَائِرَ أُمَّتِهِ مِنْ سُوءِ صَنِيعِ الْأُمَمِ قَبْلَهُمُ الَّذِينَ صَلَّوْا فِي قُبُورِ أَنْبِيَائِهِمْ وَاتَّخَذُوهَا قِبْلَةً وَمَسْجِدًا كَمَا صَنَعَتِ الْوَثَنِيَّةُ بِالْأَوْثَانِ الَّتِي كَانُوا يَسْجُدُونَ إِلَيْهَا وَيُعَظِّمُونَهَا وَذَلِكَ الشِّرْكُ الْأَكْبَرُ وَكَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يُخْبِرُهُمْ بِمَا فِي ذَلِكَ مِنْ سُخْطِ اللَّهِ وَغَضَبِهِ وَأَنَّهُ مِمَّا لَا يَرْضَاهُ خَشْيَةً عَلَيْهِمْ مِنِ امْتِثَالِ طُرُقِهِمْ

435 فتح الباري لابن رجب