At-Tawbah 9:17
مَا كَانَ لِلْمُشْرِكِينَ أَن يَعْمُرُوا۟ مَسَـٰجِدَ ٱللَّهِ شَـٰهِدِينَ عَلَىٰٓ أَنفُسِهِم بِٱلْكُفْرِ ۚ أُو۟لَـٰٓئِكَ حَبِطَتْ أَعْمَـٰلُهُمْ وَفِى ٱلنَّارِ هُمْ خَـٰلِدُونَ
Ma kana lilmushrikeena anyaAAmuroo masajida Allahi shahideena AAalaanfusihim bilkufri ola-ika habitataAAmaluhum wafee annari hum khalidoon
It is not for the polytheists to maintain the mosques of Allāh [while] witnessing against themselves with disbelief. [For] those, their deeds have become worthless, and in the Fire they will abide eternally.
It is not for the Mushriks to build up the mosques of Allah while they are witnesses of their own infidelity. Those are the ones whose deeds have gone to waste; and in the Fire they shall remain forever.