Surah Al-An'am 6:43
فَلَوْلَآ إِذْ جَآءَهُم بَأْسُنَا تَضَرَّعُوا۟ وَلَـٰكِن قَسَتْ قُلُوبُهُمْ وَزَيَّنَ لَهُمُ ٱلشَّيْطَـٰنُ مَا كَانُوا۟ يَعْمَلُونَ
Then why, when Our punishment came to them, did they not humble themselves? But their hearts became hardened, and Satan made attractive to them that which they were doing.
Translation: Saheeh International
Tafsir
If only when Our might Our punishment came upon them they had been humble in other words they were not so even though the necessitating factor was there. But their hearts were hard and would not yield to faith and Satan adorned for them what they were doing in the way of disobedient acts and so they persisted in them.
Excerpt from Tafsir al-Jalalayn, commentary on 6:43, via Quran.com. The reader has the full commentary and 9 more tafsirs.