Sahih al-Bukhari 1042
Sahih al-Bukhari · Book 16: Eclipses · As-Salat (the prayer) during a solar eclipse
Narrated Ibn `Umar:
حَدَّثَنَا أَصْبَغُ ، قَالَ أَخْبَرَنِي ابْنُ وَهْبٍ ، قَالَ أَخْبَرَنِي عَمْرٌو ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ الْقَاسِمِ ، حَدَّثَهُ عَنْ أَبِيهِ ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ أَنَّهُ كَانَ يُخْبِرُ عَنِ النَّبِيِّ صلى الله عليه وسلم. " إِنَّ الشَّمْسَ وَالْقَمَرَ لاَ يَخْسِفَانِ لِمَوْتِ أَحَدٍ وَلاَ لِحَيَاتِهِ، وَلَكِنَّهُمَا آيَتَانِ مِنْ آيَاتِ اللَّهِ، فَإِذَا رَأَيْتُمُوهَا فَصَلُّوا " .
The Prophet (ﷺ) said, "The sun and the moon do not eclipse because of the death or life (i.e. birth) of someone but they are two signs amongst the signs of Allah. When you see them offer the prayer."