وَمَا كَانَ لَهُۥ عَلَيْهِم مِّن سُلْطَـٰنٍ إِلَّا لِنَعْلَمَ مَن يُؤْمِنُ بِٱلْـَٔاخِرَةِ مِمَّنْ هُوَ مِنْهَا فِى شَكٍّ ۗ وَرَبُّكَ عَلَىٰ كُلِّ شَىْءٍ حَفِيظٌ
wamā kāna lahu ʿalayhim min sul'ṭānin illā linaʿlama man yu'minu bil-ākhirati mimman huwa min'hā fī shakkin warabbuka ʿalā kulli shayin ḥafīẓun
And he had over them no authority except [it was decreed] that We might make evident who believes in the Hereafter from who is thereof in doubt. And your Lord, over all things, is Guardian.
— Saheeh International
even though he had no authority over them. But [We aim] to distinguish those who believe in the life to come from those who doubt it: [Prophet], your Lord observes everything.
— M. A. S. Abdel Haleem
And he (Iblîs - Satan) had no authority over them, - except that We might test him who believes in the Hereafter from him who is in doubt about it. And your Lord is a Hafiz (Watchful) over everything. (All-Knower of everything i.e. He keeps record of every person as regards deeds, and then He will reward them accordingly).
— Muhammad Muhsin Khan & Muhammad Taqi-ud-Din al-Hilali

