ذٰلِكُم بِأَنَّهُ إِذا دُعِيَ اللَّهُ وَحدَهُ كَفَرتُم ۖ وَإِن يُشرَك بِهِ تُؤمِنوا ۚ فَالحُكمُ لِلَّهِ العَلِيِّ الكَبيرِ
This is because when God alone was called upon, you disbelieved, but when partners were associated with Him, you believed. Judgment belongs to God, the Most High, the Supreme.