Surah Ghafir 40:84
فَلَمَّا رَأَوْا۟ بَأْسَنَا قَالُوٓا۟ ءَامَنَّا بِٱللَّهِ وَحْدَهُۥ وَكَفَرْنَا بِمَا كُنَّا بِهِۦ مُشْرِكِينَ
And when they saw Our punishment, they said, "We believe in Allāh alone and disbelieve in that which we used to associate with Him."
Translation: Saheeh International
Tafsir
Then when they saw Our doom that is the severity of Our chastisement they said ‘We believe in God alone and we disavow what we used to associate with Him’.
Excerpt from Tafsir al-Jalalayn, commentary on 40:84, via Quran.com. The reader has the full commentary and 9 more tafsirs.