عَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُ عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ: ((إِنَّ الشَّمْسَ وَالْقَمَرَ لَا يَخْسِفَانِ لِمَوْتِ أَحَدٍ وَلَا لِحَيَاتِهِ وَلَٰكِنَّهُمَا آيَةٌ مِنْ آيَاتِ اللَّهِ تَبَارَكَ وَتَعَالَى، فَإِذَا رَأَيْتُمُوهُمَا فَصَلُّوا))
Sayyiduna Abdullah bin Umar (may Allah be pleased with him) narrates that the Noble Prophet (peace and blessings be upon him) said: Indeed, the sun and the moon do not lose their light because of anyone’s life or death, rather both of them are among the signs of Allah Almighty. Therefore, when you see either of them (eclipsed), then perform prayer.