Mishkat al-Masabih 1493
وَعَنِ النُّعْمَانِ بْنِ بَشِيرٍ قَالَ: كَسَفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَجَعَلَ يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ وَيَسْأَلُ عَنْهَا حَتَّى انْجَلَتِ الشَّمْسُ. رَوَاهُ أَبُو دَاوُدَ. وَفِي رِوَايَةِ النَّسَائِيِّ: أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ صَلَّى حِينَ انْكَسَفَتِ الشَّمْسُ مِثْلَ صَلَاتِنَا يَرْكَعُ وَيَسْجُدُ وَلَهُ فِي أُخْرَى: أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ خَرَجَ يَوْمًا مُسْتَعْجِلًا إِلَى الْمَسْجِدِ وَقَدِ انْكَسَفَتِ الشَّمْسُ فَصَلَّى حَتَّى انْجَلَتْ ثُمَّ قَالَ: إِنَّ أَهْلَ الْجَاهِلِيَّةِ كَانُوا يَقُولُونَ: إِنَّ الشَّمْسَ وَالْقَمَرَ لَا يَنْخَسِفَانِ إِلَّا لِمَوْتِ عَظِيمٍ مِنْ عُظَمَاءِ أَهْلِ الْأَرْضِ وَإِنَّ الشَّمْسَ وَالْقَمَرَ لَا يَنْخَسِفَانِ لِمَوْتِ أَحَدٍ وَلَا لِحَيَاتِهِ وَلَكِنَّهُمَا خَلِيقَتَانِ مِنْ خَلْقِهِ يُحْدِثُ اللَّهُ فِي خَلْقِهِ مَا شَاءَ فَأَيُّهُمَا انْخَسَفَ فَصَلُّوا حَتَّى ينجلي أَو يحدث الله أمرا
From an-Nuʿman ibn Bashir, who said: The sun was eclipsed in the time of the Messenger of Allah ﷺ, and he began praying two rakʿahs, two rakʿahs, and asking about it, until the sun cleared. Reported by Abu Dawud. And in the narration of an-Nasaʾi: The Prophet ﷺ prayed, when the sun was eclipsed, like our prayer, bowing and prostrating. And he has, in another: The Prophet ﷺ went out one day hurrying to the mosque when the sun had been eclipsed, and he prayed until it cleared. Then he said: "The people of the Jahiliyyah used to say that the sun and the moon are not eclipsed except for the death of one of the great ones among the people of the earth. But the sun and the moon are not eclipsed for the death of anyone nor for his life; rather, they are two of His creations. Allah brings about in His creation whatever He wills. So whichever of them is eclipsed, pray until it clears or Allah brings about some matter."