Abdullah bin Abbas reported,

The sun was eclipsed, so the Messenger of Allah ﷺ prayed.In the narration it states, they said, "Messenger of Allah, we saw you reach out for something while standing in your place, then we saw you draw back."He replied, "I was shown Paradise, and I reached out for a cluster of its grapes. Had I taken it, you would have eaten from it for as long as the world remains." The hadith continues.

Azami 12584

Sahih

عن عبد الله بن عباس قال

خسفت الشمس، فصلى رسول الله ﷺ… وفيه: قالوا: يا رسول الله، رأيناك تناول شيئا في مقامك، ثم رأيناك تكعكعت قال: إني أريت الجنة، فتناولت منها عنقودا، ولو أخذته لأكلتم منه ما بقيت الدنيا الحديث.

الأعظمي 12584صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "The example of Paradise which the righteous have been promised, beneath it rivers flow, its food is eternal and so is its shade. That is the end of those who are righteous, and the end of the disbelievers is the Fire."
Numbering
Jami al-Kamil 12584 (2nd edition)
Azami 12584