أَخْبَرَنَا مَالِكٌ، عَنْ زَيْدِ بْنِ أَسْلَمَ، عَنْ عَطَاءِ بْنِ يَسَارٍ، عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُ، قَالَ: خُسِفَتِ الشَّمْسُ فَصَلَّى النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ، فَحَكَى ابْنُ عَبَّاسٍ أَنَّ صَلَاتَهُ رَكْعَتَيْنِ فِي كُلِّ رَكْعَةٍ رَكْعَتَيْنِ ثُمَّ خَطَبَهُمْ، فَقَالَ: "إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللَّهِ عَزَّ وَجَلَّ لَا يُخْسَفَانِ لِمَوْتِ أَحَدٍ، وَلَا لِحَيَاتِهِ، فَإِذَا رَأَيْتُمْ ذَلِكَ فَافْزَعُوا إِلَى ذِكْرِ اللَّهِ" .
It is narrated from Ibn Abbas (may Allah be pleased with him) that he said: The sun was eclipsed, so the Prophet (ﷺ) performed prayer. Ibn Abbas (may Allah be pleased with him) stated that his prayer was two rak‘ahs, and in each rak‘ah there were two bowings (ruku‘). Then he addressed the people and said: "The sun and the moon are two signs among the signs of Allah. They do not eclipse because of anyone’s death or life. So when you see this state in them, hasten to the remembrance of Allah."