إِنَّ ٱلَّذِينَ كَفَرُوا۟ وَصَدُّوا۟ عَن سَبِيلِ ٱللَّهِ وَشَآقُّوا۟ ٱلرَّسُولَ مِنۢ بَعْدِ مَا تَبَيَّنَ لَهُمُ ٱلْهُدَىٰ لَن يَضُرُّوا۟ ٱللَّهَ شَيْـًٔا وَسَيُحْبِطُ أَعْمَـٰلَهُمْ
inna alladhīna kafarū waṣaddū ʿan sabīli l-lahi washāqqū l-rasūla min baʿdi mā tabayyana lahumu l-hudā lan yaḍurrū l-laha shayan wasayuḥ'biṭu aʿmālahum
Indeed, those who disbelieved and averted [people] from the path of Allāh and opposed the Messenger after guidance had become clear to them - never will they harm Allāh at all, and He will render worthless their deeds.
— Saheeh International
Those who disbelieve, bar others from God’s path, and oppose the Messenger when they have been shown guidance, do not harm God in any way. He will make their deeds go to waste-
— M. A. S. Abdel Haleem
Verily, those who disbelieve, and hinder (men) from the Path of Allâh (i.e. Islâm), and oppose the Messenger (صلى الله عليه وسلم) (by standing against him and hurting him), after the guidance has been clearly shown to them, they will not harm Allâh in the least, but He will make their deeds fruitless,
— Muhammad Muhsin Khan & Muhammad Taqi-ud-Din al-Hilali

