Death and Solar Eclipse
During the time of jaahiliyyah, people would think that the sun or moon eclipsed on the birth or death of a great person. On the day that Hazrat Ibrahim (Radhiyallahu anhu) passed away, the sun eclipsed. Rasulullah (Sallallahu alaihi wasallam) led the Sahaabah in two long rakaats of Salaat.
When the eclipse was over, he said to those present: “The sun and moon are two signs from among the signs of Allah. By means of their eclipse, Allah strikes fear into the hearts of His servants. Rest assured that an eclipse does not occur because of the birth or death of anyone. When such an occasion occurs, then become engaged in Salaat. Remain engaged in Salaat until the eclipse is over.”
(Rasulullah Sallallahu Alaihi Wasallam Kee Saahbzaadiya)