كتاب الكسوف
10  
The Book of Prayer - Eclipses
(5)
Chapter: The Call For The Eclipse Prayer: "As-Salatu Jami'ah (The Prayer Is Being Assembled)
(5)
باب ذِكْرِ النِّدَاءِ بِصَلاَةِ الْكُسُوفِ ‏"‏ الصَّلاَةَ جَامِعَةً ‏"‏ ‏
Sahih Muslim 912

Abu Musa reported:

The sun eclipsed during the time of the Messenger of Allah (ﷺ). He stood in great anxiety fearing that it might be the Doomsday, till he came to the mosque. He stood up to pray with prolonged qiyam, ruku', and prostration which I never saw him doing in prayer; and then he said: These are the signs which Allah sends, not on account of the death of anyone or life of any one, but Allah sends them to frighten thereby His servants. So when you see any such thing, hasten to remember Him, supplicate Him and beg pardon from Him, and in the narration transmitted by Ibn 'Ala the words are:" The sun eclipsed"."" He frightens His servants."
حَدَّثَنَا أَبُو عَامِرٍ الأَشْعَرِيُّ عَبْدُ اللَّهِ بْنُ بَرَّادٍ، وَمُحَمَّدُ بْنُ الْعَلاَءِ، قَالاَ حَدَّثَنَا أَبُو أُسَامَةَ عَنْ بُرَيْدٍ، عَنْ أَبِي بُرْدَةَ، عَنْ أَبِي مُوسَى، قَالَ خَسَفَتِ الشَّمْسُ فِي زَمَنِ النَّبِيِّ صلى الله عليه وسلم فَقَامَ فَزِعًا يَخْشَى أَنْ تَكُونَ السَّاعَةُ حَتَّى أَتَى الْمَسْجِدَ فَقَامَ يُصَلِّي بِأَطْوَلِ قِيَامٍ وَرُكُوعٍ وَسُجُودٍ مَا رَأَيْتُهُ يَفْعَلُهُ فِي صَلاَةٍ قَطُّ ثُمَّ قَالَ ‏"‏ إِنَّ هَذِهِ الآيَاتِ الَّتِي يُرْسِلُ اللَّهُ لاَ تَكُونُ لِمَوْتِ أَحَدٍ وَلاَ لِحَيَاتِهِ وَلَكِنَّ اللَّهَ يُرْسِلُهَا يُخَوِّفُ بِهَا عِبَادَهُ فَإِذَا رَأَيْتُمْ مِنْهَا شَيْئًا فَافْزَعُوا إِلَى ذِكْرِهِ وَدُعَائِهِ وَاسْتِغْفَارِهِ ‏"‏ ‏.‏ وَفِي رِوَايَةِ ابْنِ الْعَلاَءِ كَسَفَتِ الشَّمْسُ وَقَالَ ‏"‏ يُخَوِّفُ عِبَادَهُ ‏"‏ ‏.‏
Reference : Sahih Muslim 912
In-book reference : Book 10, Hadith 26
USC-MSA web (English) reference : Book 4, Hadith 1990
  (deprecated numbering scheme)