Mughira bin Shuba reported,

The sun was eclipsed during the time of the Messenger of Allah ﷺ on the day Ibrahim died. People said, "The sun has been eclipsed because of the death of Ibrahim."The Messenger of Allah ﷺ said, "The sun and the moon are not eclipsed for the death or life of anyone. So when you see this, pray and call upon Allah."

Azami 8214

Sahih

عن المغيرة بن شعبة قال

كسفت الشمس على عهد رسول الله ﷺ يوم مات إبراهيم فقال الناس: كسفت الشمس لموت إبراهيم. فقال رسول الله ﷺ: إن الشمس والقمر لا ينكسفان لموت أحد ولا لحياته فإذا رأيتم فصلوا وادعوا الله.

الأعظمي 8214صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Beginning of creation
Section
Sun and the moon are two signs among the signs of Allah, Allah created them for great wisdoms
Numbering
Jami al-Kamil 8214 (2nd edition)
Azami 8214