Ghafir • EN-AL-JALALAYN
﴿ ذَٰلِكُم بِأَنَّهُۥٓ إِذَا دُعِىَ ٱللَّهُ وَحْدَهُۥ كَفَرْتُمْ ۖ وَإِن يُشْرَكْ بِهِۦ تُؤْمِنُوا۟ ۚ فَٱلْحُكْمُ لِلَّهِ ٱلْعَلِىِّ ٱلْكَبِيرِ ﴾
“[And they will be told:] “This [has befallen you] because, whenever the One God was invoked, you denied this truth; whereas, when divinity was ascribed to aught beside Him, you believed [in it]! But all judgment rests with God, the Exalted, the Great!””
That namely the chastisement which you find yourselves in is because during the life of this world when God was invoked alone you would disbelieve in His Oneness; but if partners were ascribed to Him you would believe you would accept such idolatry. So the judgement to chastise you belongs to God the Exalted above His creation the Great the Tremendous.