Abu Mas'ud Ansari (may Allah be pleased with him) narrates from Madinah that on the day when the son of the Messenger of Allah ﷺ, Ibrahim, passed away, there was a solar eclipse. The people said: The solar eclipse has occurred because of the death of Ibrahim. Upon this, the Prophet ﷺ said: "The sun and the moon are two signs among the signs of Allah; their eclipse does not occur because of anyone's death or life. When you see this (eclipse), hasten to the remembrance of Allah and to prayer."
Hadith Referenceمسند الإمام الشافعي / كتاب الكسوف / 538
Hadith Takhrijاخرجه البخارى الكسوف، باب لا تنكسف الشمس لموت احد ولا لحياته (1057) ، (3204) ومسلم، الكسوف، باب ذكر النداء بصلاة الكسوف "الصلاة جامه (911)۔