صحيح البخاري Sahih Bukhari كتاب الكسوف The Book of The Eclipses.
بَابُ الصَّلاَةِ فِي كُسُوفِ الْقَمَرِ:

(17) Chapter. The prayer of the lunar eclipse.

2 hadith
Hadith 1062
حَدَّثَنَا مَحْمُودُ بْنُ غَيْلَانَ ، قَالَ : حَدَّثَنَا سَعِيدُ بْنُ عَامِرٍ ، عَنْ شُعْبَةَ ، عَنْ يُونُسَ ، عَنْ الْحَسَنِ ، عَنْ أَبِي بَكْرَةَ رَضِيَ اللَّهُ عَنْهُ ، قَالَ : "انْكَسَفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَصَلَّى رَكْعَتَيْنِ " .
Narrated Abu Bakra: In the lifetime of the Prophet the sun eclipsed and then he offered a two rak`at prayer.
Hadith Reference Sahih Bukhari / The Book of The Eclipses. / Hadith: 1062
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 1063
حَدَّثَنَا أَبُو مَعْمَرٍ ، قَالَ : حَدَّثَنَا عَبْدُ الْوَارِثِ ، قَالَ : حَدَّثَنَا يُونُسُ ، عَنْ الْحَسَنِ ، عَنْ أَبِي بَكْرَةَ ، قَالَ : " خَسَفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَخَرَجَ يَجُرُّ رِدَاءَهُ حَتَّى انْتَهَى إِلَى الْمَسْجِدِ وَثَابَ النَّاسُ إِلَيْهِ ، فَصَلَّى بِهِمْ رَكْعَتَيْنِ فَانْجَلَتِ الشَّمْسُ ، فَقَالَ : إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللَّهِ ، وَإِنَّهُمَا لَا يَخْسِفَانِ لِمَوْتِ أَحَدٍ وَإِذَا كَانَ ذَاكَ فَصَلُّوا وَادْعُوا حَتَّى يُكْشَفَ مَا بِكُمْ وَذَاكَ " ، أَنَّ ابْنًا لِلنَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَاتَ يُقَالُ لَهُ إِبْرَاهِيمُ : فَقَالَ النَّاسُ فِي ذَاكَ .
Narrated Abu Bakra: In the lifetime of the Allah's Apostle (p.b.u.h) 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).
Hadith Reference Sahih Bukhari / The Book of The Eclipses. / Hadith: 1063
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة