This masjid shouldn’t be prayed in and the disbeliever will not gain anything from it.

What is the position of an unbeleiver who build a mosque in a muslim community? Is he to gain any reward? And what would be the position of the mosque?

Rulings on mosques |