Sahih al-Bukhari 1057
Sahih al-Bukhari · Book 16: Eclipses · The solar eclipse does not occur because of someone's death or life
Narrated Abu Mas`ud:
حَدَّثَنَا مُسَدَّدٌ ، قَالَ حَدَّثَنَا يَحْيَى ، عَنْ إِسْمَاعِيلَ ، قَالَ حَدَّثَنِي قَيْسٌ ، عَنْ أَبِي مَسْعُودٍ ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " الشَّمْسُ وَالْقَمَرُ لاَ يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ وَلاَ لِحَيَاتِهِ، وَلَكِنَّهُمَا آيَتَانِ مِنْ آيَاتِ اللَّهِ، فَإِذَا رَأَيْتُمُوهُمَا فَصَلُّوا " .
Allah's Messenger (ﷺ) said, "The sun and the moon do not eclipse because of someone's death or life but they are two signs amongst the signs of Allah, so pray whenever you see them."