Sahih al-Bukhari 748
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنِّي أُرِيتُ الْجَنَّةَ، فَتَنَاوَلْتُ مِنْهَا عُنْقُودًا، وَلَوْ أَخَذْتُهُ لأَكَلْتُمْ مِنْهُ مَا بَقِيَتِ الدُّنْيَا "
Narrated `Abdullah bin `Abbas:
Once solar eclipse occurred during the lifetime of Allah's Messenger (ﷺ). He offered the eclipse prayer. His companions asked, "O Allah's Messenger (ﷺ)! We saw you trying to take something while standing at your place and then we saw you retreating." The Prophet (ﷺ) said, "I was shown Paradise and wanted to have a bunch of fruit from it. Had I taken it, you would have eaten from it as long as the world remains."
Full reference and source
Sahih al-Bukhari 748 In-book : Book 10, Hadith 142 USC-MSA web (English) : Vol. 1, Book 12, Hadith 715 (deprecated)
View source on Sunnah.com (opens in a new tab)