Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:1040ʿAmr b. ʿAwn > Khālid > Yūnus > al-Ḥasan > Abū Bakrah

We were with Messenger of Allah ﷺ when the sun eclipsed. Messenger of Allah ﷺ stood up dragging his cloak till he entered the Mosque. He led us in a two-rakʿat prayer till the sun (eclipse) had cleared. Then the Prophet ﷺ said, "The sun and the moon do not eclipse because of someone's death. So whenever you see these eclipses pray and invoke (Allah) till the eclipse is over."  

البخاري:١٠٤٠حَدَّثَنَا عَمْرُو بْنُ عَوْنٍ قَالَ حَدَّثَنَا خَالِدٌ عَنْ يُونُسَ عَنِ الْحَسَنِ عَنْ أَبِي بَكْرَةَ قَالَ

كُنَّا عِنْدَ رَسُولِ اللَّهِ ﷺ فَانْكَسَفَتِ الشَّمْسُ فَقَامَ النَّبِيُّ ﷺ يَجُرُّ رِدَاءَهُ حَتَّى دَخَلَ الْمَسْجِدَ فَدَخَلْنَا فَصَلَّى بِنَا رَكْعَتَيْنِ حَتَّى انْجَلَتِ الشَّمْسُ فَقَالَ ﷺ إِنَّ الشَّمْسَ وَالْقَمَرَ لاَ يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ فَإِذَا رَأَيْتُمُوهُمَا فَصَلُّوا وَادْعُوا حَتَّى يُكْشَفَ مَا بِكُمْ  


See similar narrations below:

Collected by Bukhārī, Nasāʾī, Ibn Ḥibbān, Nasāʾī's Kubrá
bukhari:1063Abū Maʿmar > ʿAbd al-Wārith > Yūnus > al-Ḥasan > Abū Bakrah

In the lifetime of the Messenger of Allah ﷺ the sun eclipsed and he went out dragging his clothes till he reached the Mosque. The people gathered around him and he led them and offered two rakʿat. When the sun (eclipse) cleared, he said, "The sun and the moon are two signs amongst the signs of Allah; they do not eclipse because of the death of someone, and so when an eclipse occurs, pray and invoke Allah till the eclipse is over." It happened that a son of the Prophet ﷺ called Ibrahim died on that day and the people were talking about that (saying that the eclipse was caused by his death).  

البخاري:١٠٦٣حَدَّثَنَا أَبُو مَعْمَرٍ قَالَ حَدَّثَنَا عَبْدُ الْوَارِثِ قَالَ حَدَّثَنَا يُونُسُ عَنِ الْحَسَنِ عَنْ أَبِي بَكْرَةَ قَالَ

خَسَفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللَّهِ ﷺ فَخَرَجَ يَجُرُّ رِدَاءَهُ حَتَّى انْتَهَى إِلَى الْمَسْجِدِ وَثَابَ النَّاسُ إِلَيْهِ فَصَلَّى بِهِمْ رَكْعَتَيْنِ فَانْجَلَتِ الشَّمْسُ فَقَالَ إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللَّهِ وَإِنَّهُمَا لاَ يَخْسِفَانِ لِمَوْتِ أَحَدٍ وَإِذَا كَانَ ذَاكَ فَصَلُّوا وَادْعُوا حَتَّى يُكْشَفَ مَا بِكُمْ وَذَاكَ أَنَّ ابْنًا لِلنَّبِيِّ ﷺ مَاتَ يُقَالُ لَهُ إِبْرَاهِيمُ فَقَالَ النَّاسُ فِي ذَاكَ  

nasai:1502ʿAmr b. ʿAlī > Yazīd / Ibn Zurayʿ > Yūnus > al-Ḥasan > Abū Bakrah

"We were with the Prophet ﷺ and the sun became eclipsed. He got up and went to the masjid, dragging his garment in haste. The people stood with him and he prayed two rak'ahs as they usually prayed. When the eclipse ended he addressed us and said 'The sun and the moon are two of the signs of Allah (SWT), with which He strikes fear into His slaves. They do not become eclipsed for the death or birth of anyone. If you see either of them being eclipsed, then pray and supplicate until it removed it from you.'"  

النسائي:١٥٠٢أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ قَالَ حَدَّثَنَا يَزِيدُ وَهُوَ ابْنُ زُرَيْعٍ قَالَ حَدَّثَنَا يُونُسُ عَنِ الْحَسَنِ عَنْ أَبِي بَكْرَةَ قَالَ

كُنَّا عِنْدَ النَّبِيِّ ﷺ فَانْكَسَفَتِ الشَّمْسُ فَقَامَ إِلَى الْمَسْجِدِ يَجُرُّ رِدَاءَهُ مِنَ الْعَجَلَةِ فَقَامَ إِلَيْهِ النَّاسُ فَصَلَّى رَكْعَتَيْنِ كَمَا يُصَلُّونَ فَلَمَّا انْجَلَتْ خَطَبَنَا فَقَالَ إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللَّهِ يُخَوِّفُ بِهِمَا عِبَادَهُ وَإِنَّهُمَا لاَ يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ فَإِذَا رَأَيْتُمْ كُسُوفَ أَحَدِهِمَا فَصَلُّوا وَادْعُوا حَتَّى يَنْكَشِفَ مَا بِكُمْ  

ذِكْرُ الْأَمْرِ بِالصَّلَاةِ عِنْدَ رُؤْيَةٍ كُسُوفِ الشَّمْسِ، أَوِ الْقَمَرِ

ibnhibban:2834Aḥmad b. ʿAlī b. al-Muthanná > Hudbah b. Khālid al-Qaysī > Mubārak b. Faḍālah > al-Ḥasan > Abū Bakrah

[Machine] We were sitting with the Messenger of Allah ﷺ when the sun was eclipsed. The Messenger of Allah ﷺ stood up in fear, dragging his garment until he entered the mosque and performed two units of prayer. He continued to pray until the eclipse passed, and this occurred at the time of the death of Ibrahim, the son of the Messenger of Allah ﷺ . The people said, "The sun was eclipsed due to the death of Ibrahim." The Messenger of Allah ﷺ said, "O people, the sun and the moon are signs of Allah's creation. They do not eclipse for the death of anyone. So when you see an eclipse, supplicate to Allah until it clears."  

ابن حبّان:٢٨٣٤أَخْبَرَنَا أَحْمَدُ بْنُ عَلِيِّ بْنِ الْمُثَنَّى قَالَ حَدَّثَنَا هُدْبَةُ بْنُ خَالِدٍ الْقَيْسِيُّ قَالَ حَدَّثَنَا مُبَارَكُ بْنُ فَضَالَةَ عَنِ الْحَسَنِ عَنْ أَبِي بَكْرَةَ قَالَ

كُنَّا عِنْدَ رَسُولِ اللَّهِ ﷺ جُلُوسًا فَانْكَسَفَتِ الشَّمْسُ فَقَامَ رَسُولُ اللَّهِ ﷺ فَزِعًا يَجُرُّ ثَوْبَهُ حَتَّى دَخَلَ الْمَسْجِدِ فَصَلَّى رَكْعَتَيْنِ فَلَمْ يَزَلْ يُصَلِّيهَا حَتَّى انْجَلَتْ وَكَانَ ذَلِكَ عِنْدَ مَوْتِ إِبْرَاهِيمَ ابْنِ رَسُولِ اللَّهِ ﷺ فَقَالَ النَّاسُ إِنَّمَا انْكَسَفَتِ الشَّمْسُ لِمَوْتِ إِبْرَاهِيمَ فَقَالَ رَسُولُ اللَّهِ ﷺ «يَا أَيُّهَا النَّاسُ إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللَّهِ لَا يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ فَإِذَا رَأَيْتُمْ ذَلِكَ فَادْعُوا حَتَّى يَكْشِفَ مَا بِكُمْ»  

nasai-kubra:1902ʿAmr b. ʿAlī > Yazīd / Ibn Zurayʿ > Yūnus > al-Ḥasan > Abū Bakarah

"We were with the Prophet ﷺ and the sun became eclipsed. He got up and went to the masjid, dragging his garment in haste. The people stood with him and he prayed two rak'ahs as they usually prayed. When the eclipse ended he addressed us and said 'The sun and the moon are two of the signs of Allah (SWT), with which He strikes fear into His slaves. They do not become eclipsed for the death or birth of anyone. If you see either of them being eclipsed, then pray and supplicate until it removed it from you.'" (Using translation from Nasāʾī 1502)  

الكبرى للنسائي:١٩٠٢أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ قَالَ حَدَّثَنَا يَزِيدُ وَهُوَ ابْنُ زُرَيْعٍ قَالَ حَدَّثَنَا يُونُسُ عَنِ الْحَسَنِ عَنْ أَبِي بَكَرَةَ قَالَ

كُنَّا عِنْدَ النَّبِيِّ ﷺ فَانْكَسَفَتِ الشَّمْسُ فَقَامَ إِلَى الْمَسْجِدِ يَجُرُّ رِدَاءَهُ مِنَ الْعَجَلَةِ فَقَامَ إِلَيْهِ النَّاسُ فَصَلَّى رَكْعَتَيْنِ كَمَا تُصَلُّونَ فَلَمَّا انْجَلَتْ خَطَبَنَا فَقَالَ «إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللهِ يُخَوِّفُ اللهُ بِهِمَا عِبَادَهُ وَإِنَّهُمَا لَا يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ فَإِذَا رَأَيْتُمْ كُسُوفَ أَحَدِهِمَا فَصَلُّوا وَادْعُوا حَتَّى يُكْشَفَ مَا بِكُمْ»