Question: 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 Salaah (Prayer) there bearing in mind that the grave is in a room whose door opens from inside the Masjid?
Answer: 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… read more here.