Does prayer become invalid in mosques that follow parties, due to their divergence from His saying, Exalted is He: "And that the mosques are for Allah, so do not invoke anyone with Allah"?
All mosques belong to Allah, and prayer in them is valid. Their naming after their builders or the residents of the neighborhood does not remove them from being mosques belonging to Allah. The permissibility of this attribution is indicated by what was narrated in the Hadith concerning the mosque of Bani Zurayq. Therefore, one must be diligent in praying in the mosque and not fall behind except for a valid excuse. It is not permissible to abandon prayer in it due to observations about people.
Summarized from the full answer at Ftawy · reviewed Sep 2, 2026
Read the full answer on Ftawyhttps://ftawy.com/en/questions/102200