عَنِ اَلْمُغِيرَةِ بْنِ شُعْبَةَ رضى الله عنه
قَالَ: «اِنْكَسَفَتِ اَلشَّمْسُ عَلَى عَهْدِ رَسُولِ اَللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَوْمَ مَاتَ إِبْرَاهِيمُ، فَقَالَ اَلنَّاسُ: اِنْكَسَفَتِ اَلشَّمْسُ لِمَوْتِ إِبْرَاهِيمَ، فَقَالَ رَسُولُ اَللَّهِ (صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ) «إِنَّ اَلشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اَللَّهِ لَا يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ وَلَا لِحَيَاتِهِ، فَإِذَا رَأَيْتُمُوهُمَا، فَادْعُوا اَللَّهَ وَصَلُّوا، حَتَّى تَنْكَشِفَ»
That there was a solar eclipse in the time of the Messenger of Allah (sallallahu alayhi wa sallam) on the day his son Ibrahim died. The people said, “The eclipse of the sun has happened due to the death of Ibrahim.”
The Messenger of Allah (sallallahu alayhi wa sallam) said: “The sun and the moon are two of Allah’s signs; they are not eclipsed due to the death or the life of anyone. So when you see them (the eclipse of the moon or sun) supplicate to Allah and offer prayers until the eclipse is over.”.