If the masjid was built on the grave, you must repeat the prayers.

If the grave was introduced to the masjid, some say that as long as it
is not in the direction of qibla, it is ok. I am inclined that praying in that masjid is not permissible as well.

sheik, In my hometown there is a masjid, which has graves right side to it, it is attached with the masjid compass, is it permissible to pray in that masjid? is my prayer valid if i had prayed there unknowingly in my past?

Prayer |