Sahih al-Bukhari 6538
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
يُجَاءُ بِالْكَافِرِ يَوْمَ الْقِيَامَةِ فَيُقَالُ لَهُ أَرَأَيْتَ لَوْ كَانَ لَكَ مِلْءُ الأَرْضِ ذَهَبًا أَكُنْتَ تَفْتَدِي بِهِ فَيَقُولُ نَعَمْ. فَيُقَالُ لَهُ قَدْ كُنْتَ سُئِلْتَ مَا هُوَ أَيْسَرُ مِنْ ذَلِكَ "
Narrated Anas bin Malik:
Allah's Prophet used to say, "A disbeliever will be brought on the Day of Resurrection and will be asked. "Suppose you had as much gold as to fill the earth, would you offer it to ransom yourself?" He will reply, "Yes." Then it will be said to him, "You were asked for something easier than that (to join none in worship with Allah (i.e. to accept Islam, but you refused).
Full reference and source
Sahih al-Bukhari 6538 In-book : Book 81, Hadith 127 USC-MSA web (English) : Vol. 8, Book 76, Hadith 546 (deprecated)
View source on Sunnah.com (opens in a new tab)