Surah Az-Zumar 39:47
وَلَوْ أَنَّ لِلَّذِينَ ظَلَمُوا۟ مَا فِى ٱلْأَرْضِ جَمِيعًا وَمِثْلَهُۥ مَعَهُۥ لَٱفْتَدَوْا۟ بِهِۦ مِن سُوٓءِ ٱلْعَذَابِ يَوْمَ ٱلْقِيَـٰمَةِ ۚ وَبَدَا لَهُم مِّنَ ٱللَّهِ مَا لَمْ يَكُونُوا۟ يَحْتَسِبُونَ
And if those who did wrong had all that is in the earth entirely and the like of it with it, they would [attempt to] ransom themselves thereby from the worst of the punishment on the Day of Resurrection. And there will appear to them from Allāh that which they had not taken into account.
Translation: Saheeh International
Tafsir
And even if the evildoers possessed all that is in the earth and as much of it besides they would surely offer it to ransom themselves from the terrible chastisement on the Day of Resurrection. …
Excerpt from Tafsir al-Jalalayn, commentary on 39:47, via Quran.com. The reader has the full commentary and 9 more tafsirs.