كتاب الكسوف
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 911 a

Abu Mas'ud al-Ansari reported Allah's Messenger (ﷺ) as saying:

Verily the sun and the moon are the two signs among the signs of Allah by which He frightens his servants and they do not eclipse on account of the death of any one of the people. So when you see anything about them, observe prayer, supplicate Allah till it is cleared from you.
وَحَدَّثَنَا يَحْيَى بْنُ يَحْيَى، أَخْبَرَنَا هُشَيْمٌ، عَنْ إِسْمَاعِيلَ، عَنْ قَيْسِ بْنِ أَبِي حَازِمٍ، عَنْ أَبِي مَسْعُودٍ الأَنْصَارِيِّ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللَّهِ يُخَوِّفُ اللَّهُ بِهِمَا عِبَادَهُ وَإِنَّهُمَا لاَ يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ مِنَ النَّاسِ فَإِذَا رَأَيْتُمْ مِنْهَا شَيْئًا فَصَلُّوا وَادْعُوا اللَّهَ حَتَّى يُكْشَفَ مَا بِكُمْ ‏"‏ ‏.‏
Reference : Sahih Muslim 911a
In-book reference : Book 10, Hadith 23
USC-MSA web (English) reference : Book 4, Hadith 1987
  (deprecated numbering scheme)