Q: What is the ruling on
building Masjids (mosques) over graves
as well as demolishing Masjids which are built over graves?
It is not permissible to build Masjids over graves, for the Prophet (peace be upon him) prohibited this practice and cursed the person who does it. The prohibition encompasses both building Masjids over graves and performing Salah (prayer) in such Masjids. Masjids that are built over graves should be demolished because they are set up in a non-Shar`y (Islamically lawful) way and also leaving them as they are and performing Salah in them are means leading to Shirk (associating others with Allah in His Divinity or worship).May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.