وَمَا كَانَ لَهُۥ عَلَيْهِم مِّن سُلْطَـٰنٍ إِلَّا لِنَعْلَمَ مَن يُؤْمِنُ بِٱلْـَٔاخِرَةِ مِمَّنْ هُوَ مِنْهَا فِى شَكٍّ ۗ وَرَبُّكَ عَلَىٰ كُلِّ شَىْءٍ حَفِيظٌ
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
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.
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).