Not to Maintain Mosques
It is not for the polytheists to maintain Allah’s places of worship while openly disbelieving. Their deeds are worthless, and they will remain in the Fire forever.
9:17It is not for the idolaters to tend Allah's sanctuaries, bearing witness against themselves of disbelief. As for such, their works are vain and in the Fire they will abide.