The Prophet ﷺ said, "The sun and the moon do not eclipse because of the death of someone from the people but they are two signs amongst the signs of Allah. When you see them stand up and pray." (Using translation from Bukhārī 1041)
عَنْ رَسُولِ اللَّهِ ﷺ قَالَ «إِنَّ الشَّمْسَ وَالْقَمَرَ لَيْسَا يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ مِنَ النَّاسِ وَلَكِنَّهُمَا آيَتَانِ مِنْ آيَاتِ اللَّهِ فَإِذَا رَأَيْتُمُوهُمَا فَقُومُوا فَصَلُّوا»