It would be said to the non-believers on the Day of Resurrection: If you were to possess gold, filling the whole earth, would you like to secure your freedom by paying that? He would say: Yes. Thereupon it would be said to him: Something easier (than this) was demanded from you (but you paid no heed to it). (Using translation from Muslim 2805c)
أَنَّ نَبِيَّ اللَّهِ ﷺ قَالَ «يُقَالُ لِلْكَافِرِ يَوْمَ الْقِيَامَةِ أَرَأَيْتَ لَوْ كَانَ لَكَ مِلْءُ الْأَرْضِ ذَهَبًا أَكُنْتَ تَفْتَدِي بِهِ؟ فَيَقُولُ نَعَمْ فَيُقَالُ قَدْ سُئِلْتَ أَيْسَرَ مِنْ ذَلِكَ»