Sahih al-Bukhari 3204
Sahih al-Bukhari · Book 59: Beginning of Creation · Characteristic of the sun and the moon
Narrated Abu Mas`ud:
حَدَّثَنِي مُحَمَّدُ بْنُ الْمُثَنَّى ، حَدَّثَنَا يَحْيَى ، عَنْ إِسْمَاعِيلَ ، قَالَ حَدَّثَنِي قَيْسٌ ، عَنْ أَبِي مَسْعُودٍ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " الشَّمْسُ وَالْقَمَرُ لاَ يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ وَلاَ لِحَيَاتِهِ، وَلَكِنَّهُمَا آيَتَانِ مِنْ آيَاتِ اللَّهِ، فَإِذَا رَأَيْتُمُوهُمَا فَصَلُّوا " .
The Prophet (ﷺ) said, "the sun and the moon do not eclipse because of the death or life of someone, but they are two signs amongst the Signs of Allah. So, if you see them, offer the Prayer (of eclipse).