The World Federation One Stop Fiqh

Ruling 889

If someone usurps a mosque and builds a house or something similar in its place, or if it becomes ruined to the extent that it can no longer be called a mosque, then making it impure is not unlawful, nor is it obligatory to purify it.