Anas bin Malik reported,

The Prophet ﷺ said, "On the Day of Resurrection, the disbeliever will be brought forward and asked, 'If you had an earth full of gold, would you offer it as ransom?' He will reply, 'Yes.' He will then be told, 'You were asked for something far easier than that.'"In another narration, "He will be told, 'You have lied. You were asked for something far easier than that.'"

Azami 16480

Sahih

عن أنس بن مالك

أن نبي ﷺ كان يقول: يجاء بالكافر يوم القيامة، فيقال له: أرأيت لو كان لك ملء الأرض ذهبا أكنت تفتدي به؟ فيقول: نعم، فيقال له: قد كنت سئلت ما هو أيسر من ذلك. وفي رواية: فيقال له: كذبت، قد سئلت ما هو أيسر من ذلك.

الأعظمي 16480صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Description of Paradise and Hell and their inhabitants
Chapter
People of the Fire, their description
Section
Wishing of the people of Hell to ransom themselves with all that is on the earth and to escape from Hell
Numbering
Jami al-Kamil 16480 (2nd edition)
Azami 16480