Q: The people of our town demolished a Masjid (mosque) to rebuild it. The Masjid has been built on a shrine. When they started building, they built the shrine and didn't exclude it from the Masjid. Is it permissible to
donate money to this Masjid?
Moreover, is it permissible to perform Salah (Prayer) there bearing in mind that the grave is in a room whose door opens from inside the Masjid?
(Part No. 1; Page No. 412)
In case that the situation is as mentioned above, it is not permissible either to donate money for building this Masjid or even to help in its construction by any means. Performing Salah in such a Masjid is not permissible. Rather, that Masjid should be destroyed.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.