The Prophet (peace & blessings be upon him) repeatedly condemned grave-worshipping in the authentic Hadith:
“Beware of those who preceded you and used to take the graves of their prophets and righteous men as places of worship, but you must not take graves as mosques; I forbid you to do that.” (Sahih Muslim)
“May Allah’s curse be on the Jews for they built the places of worship at the graves of their Prophets.” (Sahih Bukhari)
“May Allah curse the Jews and Christians for they built the places of worship at the graves of their Prophets.” (Sahih Bukhari)
“If any religious man dies amongst those people they would build a place of worship at his grave and make these pictures in it. They will be the worst creature in the sight of Allah on the Day of Resurrection.” (Sahih Bukhari)
“Do not sit on the graves and do not pray facing towards them.” (Sahih Bukhari)
The first time in human history that people commited the sin of idol-worship was around the time of Prophet Nuh (عليه السلام). A very pious man passed away. Shaytan whispered in the ears of the townspeople: he urged them never to forget this pious man lest the townspeople abandon his example and be lost to sin. Once Shaytan had convinced them of the necessity to revere the memory of this pious dead man, he then then convinced them to erect a shrine over the grave of this man. Eventually, the people started praying in the shrine, and soon thereafter Shaytan convinced them to pray to the deceased man.
It was in this step by step fashion that Shaytan was able to misguide people into Shirk. He convinced them that they were doing a good thing by respecting a pious man, and he allowed them to add one Bidah (evil innovation) after another, infusing polythiestic practise in their belief.
Shaykh Muhammad Salih al-Munajjid says:
“Islam forbids erecting structures over graves, and commands that any such structures should be knocked down. But it is permitted to put a marker on the grave so that the family and friends of the deceased will know where it is (and nothing more than this). However, this marker should not be a structure or anything else that is not allowed in sharee’ah.”
With regard to the prohibition on erecting structures over graves, it was narrated that Jabir said: “The Messenger of Allah forbade plastering over graves, sitting on them and erecting structures over them.” (Sahih Muslim, 970)
Al-Shawkani said:
“The phrase ‘erecting structures over them’ indicates that it is Haram to build anything over a grave.”
Al-Shafi’i said:
“I saw the imams in Makkah ordering that what had been built (over graves) was to be knocked down.”
Shaykh Muhammad Salih al-Munajjid says:
“With regard to the command to knock down structures that have been built over graves, that is proven in the Sunnah.”
It was narrated that Abu’l-Hayaaj al-Asadi said: Ali ibn Abi Talib said to me: “Shall I not send you on the same mission as the Messenger of Allah sent me? Do not leave any statue without erasing it, and do not leave any raised grave without leveling it.” (Sahih Muslim, 969).
“Beware of those who preceded you and used to take the graves of their prophets and righteous men as places of worship, but you must not take graves as mosques; I forbid you to do that.” (Sahih Muslim)
“May Allah’s curse be on the Jews for they built the places of worship at the graves of their Prophets.” (Sahih Bukhari)
“May Allah curse the Jews and Christians for they built the places of worship at the graves of their Prophets.” (Sahih Bukhari)
“If any religious man dies amongst those people they would build a place of worship at his grave and make these pictures in it. They will be the worst creature in the sight of Allah on the Day of Resurrection.” (Sahih Bukhari)
“Do not sit on the graves and do not pray facing towards them.” (Sahih Bukhari)
The first time in human history that people commited the sin of idol-worship was around the time of Prophet Nuh (عليه السلام). A very pious man passed away. Shaytan whispered in the ears of the townspeople: he urged them never to forget this pious man lest the townspeople abandon his example and be lost to sin. Once Shaytan had convinced them of the necessity to revere the memory of this pious dead man, he then then convinced them to erect a shrine over the grave of this man. Eventually, the people started praying in the shrine, and soon thereafter Shaytan convinced them to pray to the deceased man.
It was in this step by step fashion that Shaytan was able to misguide people into Shirk. He convinced them that they were doing a good thing by respecting a pious man, and he allowed them to add one Bidah (evil innovation) after another, infusing polythiestic practise in their belief.
Shaykh Muhammad Salih al-Munajjid says:
“Islam forbids erecting structures over graves, and commands that any such structures should be knocked down. But it is permitted to put a marker on the grave so that the family and friends of the deceased will know where it is (and nothing more than this). However, this marker should not be a structure or anything else that is not allowed in sharee’ah.”
With regard to the prohibition on erecting structures over graves, it was narrated that Jabir said: “The Messenger of Allah forbade plastering over graves, sitting on them and erecting structures over them.” (Sahih Muslim, 970)
Al-Shawkani said:
“The phrase ‘erecting structures over them’ indicates that it is Haram to build anything over a grave.”
Al-Shafi’i said:
“I saw the imams in Makkah ordering that what had been built (over graves) was to be knocked down.”
Shaykh Muhammad Salih al-Munajjid says:
“With regard to the command to knock down structures that have been built over graves, that is proven in the Sunnah.”
It was narrated that Abu’l-Hayaaj al-Asadi said: Ali ibn Abi Talib said to me: “Shall I not send you on the same mission as the Messenger of Allah sent me? Do not leave any statue without erasing it, and do not leave any raised grave without leveling it.” (Sahih Muslim, 969).