Hadithcore
Sahih al-Bukhari, 748
sahih

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."

حَدَّثَنَا إِسْمَاعِيلُ، قَالَ حَدَّثَنِي مَالِكٌ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنْ عَبْدِ اللَّهِ بْنِ عَبَّاسٍ، رضى الله عنهما قَالَ خَسَفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللَّهِ صلى الله عليه وسلم فَصَلَّى، قَالُوا يَا رَسُولَ اللَّهِ، رَأَيْنَاكَ تَنَاوَلُ شَيْئًا فِي مَقَامِكَ، ثُمَّ رَأَيْنَاكَ تَكَعْكَعْتَ‏.‏ قَالَ ‏

‏ إِنِّي أُرِيتُ الْجَنَّةَ، فَتَنَاوَلْتُ مِنْهَا عُنْقُودًا، وَلَوْ أَخَذْتُهُ لأَكَلْتُمْ مِنْهُ مَا بَقِيَتِ الدُّنْيَا ‏

‏‏.‏

References2 variants
In-Book Reference
Book 10, Hadith 142
USC-MSA web (English) reference
Vol. 1, Book 12, Hadith 715 (deprecated numbering scheme)
Sharh · explanationclick to expand
Allah (may He be glorified and exalted) created Paradise and Hell, with a certain nature that is known to Him (may He be glorified and exalted). Allah (may He be exalted) lifted the barrier for the Prophet (blessings and peace of Allah be upon him) and caused him to see Paradise and Hell, and He shortened the distance between them so that he was able to see both of them. In this hadith, ‘Abdullah ibn ‘Abbas (may Allah be pleased with him) narrates that the sun was eclipsed at the time of the Messenger of Allah (blessings and peace of Allah be upon him). In another report, it is narrated that this occurred on the day when his son Ibrahim died. When the sun is eclipsed, its light disappears. In Arabic, a solar eclipse is usually referred to as kusuf and a lunar eclipse is usually referred to as khusuf, but the terms may be used interchangeably. This is what we see in this report (in which khusuf is used to refer to the sun). The Prophet (blessings and peace of Allah be upon him) stood and led the people in prayer; this prayer is described in other reports, such as that which was narrated by al-Bukhari from Asma’ bint Abi Bakr al-Siddiq (may Allah be pleased with her), in which it says that the Prophet (blessings and peace of Allah be upon him) offered the eclipse prayer. He stood and made his standing lengthy, then he bowed and made his bowing lengthy, then he stood up and made his standing lengthy, then he bowed and made his bowing lengthy, then he rose from bowing, then he prostrated and made his prostration lengthy, then he rose from prostration, then he prostrated and made his prostration lengthy. Then he stood and made his standing lengthy, then he bowed and made his bowing lengthy, then he stood up and made his standing lengthy, then he bowed and made his bowing lengthy, then he rose from bowing, then he prostrated and made his prostration lengthy, then he rose from prostration, then he prostrated and made his prostration lengthy, then he finished his prayer. This was two rak‘ahs of non-obligatory prayer, which differed from all other prayers in that it had two bowings and two recitations [in each rak‘ah]. The Sunnah is to make the recitation lengthy in the eclipse prayer. During this prayer, it happened that the Messenger of Allah (blessings and peace of Allah be upon him) reached out, as if he wanted to take something, then he moved backwards. When he (blessings and peace of Allah be upon him) finished his prayer, his companions (may Allah be pleased with them) asked him about that, saying to him: We saw you reaching out to take something, then we saw you retreating; in other words, we saw you wanting to take something, then you moved backwards. The Prophet (blessings and peace of Allah be upon him) told them that he had seen Paradise, and Allah had showed him some of its delights; he wanted to take a bunch (of grapes) from it, but he stepped back and did not do that. And he told them that if he had got it for them, they would have eaten from it so long as this world remains. But he did not take it, because the food of Paradise lasts forever and is not subject to change, and it is not possible to eat in this world anything except that which is subject to change and vanish, because Allah created it to have an end, so there can be nothing in this world that is meant to be eternal. This hadith indicates that it is prescribed to offer the eclipse prayer, and describes how it is to be done. It also indicates that Paradise and Hell have already been created and exist at present, in a manner that is known only to Allah (may He be glorified and exalted)..