Al-Mulk - 67:10

وَقَالُوا لَوْ كُنَّا نَسْمَعُ أَوْ نَعْقِلُ مَا كُنَّا فِي أَصْحَابِ السَّعِيرِ
[67:10]
And they shall say: Had we but listened or pondered, we should not have been among the inmates of the burning fire.
They will further say: "Had we but listened or used our intelligence, we should not (now) be among the Companions of the Blazing Fire!"
And they say: Had we been wont to listen or have sense, we had not been among the dwellers in the flames.