It is narrated from Sayyiduna Mughirah (may Allah be pleased with him); he said: When Ibrahim, the son of the Prophet (peace and blessings be upon him), died, the sun was eclipsed, and the people said: It has been eclipsed because of the death of Ibrahim. So the Messenger of Allah (peace and blessings be upon him) came out and said: "O people! The sun and the moon are not eclipsed on account of anyone's death or life; rather, they are two of the signs of Allah. When that happens, pray until (the eclipse) clears."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 18140