Surah Ghafir, ayah 84

40:84

فَلَمَّا رَأَوۡاْ بَأۡسَنَا قَالُوٓاْ ءَامَنَّا بِٱللَّهِ وَحۡدَهُۥ وَكَفَرۡنَا بِمَا كُنَّا بِهِۦ مُشۡرِكِينَ ٨٤

Falammā ra'aw ba sanā qālū āmannā billāhi wahdahū wakafarnā bimā kunnā bihī mushrikīn

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."