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." (Using translation from Bukhārī 1042)
عَنْ رَسُولِ اللهِ ﷺ قَالَ «إِنَّ الشَّمْسَ وَالْقَمَرَ لَا يَنْخَسِفَانُ لِمَوْتِ أَحَدٍ وَلَا لِحَيَاتِهِ وَلَكِنَّهُمَا آيَتَانِ مِنْ آيَاتِ اللهِ فَإِذَا رَأَيْتُمُوهَا فَصَلُّوا»