I heard Mughira b. Shu'ba saying that the sun eclipsed during the lifetime of the Messenger of Allah ﷺ on the day when Ibrahim died. Upon this the Messenger of Allah ﷺ said: Verily the sun and the moon are the two signs among the signs of Allah. They do not eclipse on account of the death of anyone or on account of the birth of anyone. So when you see them, supplicate Allah, and observe prayer till it is over. (Using translation from Muslim 915)
سَمِعْتُ الْمُغِيرَةَ بْنَ شُعْبَةَ يَقُولُ انْكَسَفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ يَوْمَ مَاتَ إِبْرَاهِيمُ فَقَالَ النَّاسُ انْكَسَفَتْ لِمَوْتِ إِبْرَاهِيمَ فَقَالَ رَسُولُ اللهِ ﷺ إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللهِ لَا يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ وَلَا لِحَيَاتِهِ فَإِذَا رَأَيْتُمُوهُ فَادْعُوا اللهَ وَصَلُّوا حَتَّى تَنْكَشِفَ