ما كان للمشركين أن يعمروا مساجد الله شاهدين على أنفسهم بالكفر أولئك حبطت أعمالهم وفي النار هم خالدون
Ma kana lilmushrikeena anyaAAmuroo masajida Allahi shahideena AAalaanfusihim bilkufri ola-ika habitataAAmaluhum wafee annari hum khalidoon
Sahih International
It is not for the polytheists to maintain the mosques of Allah [while] witnessing against themselves with disbelief. [For] those, their deeds have become worthless, and in the Fire they will abide eternally.
Muhsin Khan
It is not for the Mushrikun (polytheists, idolaters, pagans, disbelievers in the Oneness of Allah), to maintain the Mosques of Allah (i.e. to pray and worship Allah therein, to look after their cleanliness and their building, etc.), while they witness against their ownselves of disbelief. The works of such are in vain and in Fire shall they abide.
Pickthall
It 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.
Yusuf Ali
It is not for such as join gods with Allah, to visit or maintain the mosques of Allah while they witness against their own souls to infidelity. The works of such bear no fruit: In Fire shall they dwell.
Shakir
The idolaters have no right to visit the mosques of Allah while bearing witness to unbelief against themselves, these it is whose doings are null, and in the fire shall they abide.
Dr. Ghali
In no way should the associators (Those who associate others with Allah) tend the mosques of Allah, witnessing against themselves disbelief; those, their deeds are frustrated, and in the Fire they are eternally (abiding (..