Mustadrak al-Hakim 1235
Abū ʿAbdullāh Muḥammad b. ʿAbdullāh b. Dīnār > Zakariyyā b. Dāwud Abū Yaḥyá al-Khaffāf > ʿUbaydullāh b. ʿUmar b. Maysarah > Muʿādh b. Hishām from my father > Qatādah > Abū Qilābah > al-Nuʿmān b. Bashīr
That there was an eclipse of the sun and the Prophet of Allah ﷺ prayed two rak'ahs until it ended. Then he said: "The sun and the moon do not become eclipsed for the death of anyone, but they are two of His creations. Allah, the Mighty and Sublime, causes whatever He wants to happen in His creation. If Allah (SWT), the Mighty and Sublime, manifests Himself to any of His creation, it humbles itself before Him, so if either of them (solar or lunar eclipse) happens, pray until it is over or until Allah causes something to happen."
حَدَّثَنَا أَبُو عَبْدِ اللَّهِ مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ دِينَارٍ ثنا زَكَرِيَّا بْنُ دَاوُدَ أَبُو يَحْيَى الْخَفَّافُ ثنا عُبَيْدُ اللَّهِ بْنُ عُمَرَ بْنِ مَيْسَرَةَ ثنا مُعَاذُ بْنُ هِشَامٍ حَدَّثَنِي أَبِي عَنْ قَتَادَةَ عَنْ أَبِي قِلَابَةَ عَنِ النُّعْمَانِ بْنِ بَشِيرٍ
أَنَّ الشَّمْسَ انْكَسَفَتْ فَصَلَّى النَّبِيُّ ﷺ رَكْعَتَيْنِ حَتَّى انْجَلَتْ ثُمَّ قَالَ «إِنَّ الشَّمْسَ وَالْقَمَرَ لَا يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ وَلَكِنَّهُمَا خَلْقَانِ مِنْ خَلْقِهِ وَيُحْدِثُ اللَّهُ فِي خَلْقِهِ مَا شَاءَ ثُمَّ إِنَّ اللَّهَ تَبَارَكَ وَتَعَالَى إِذَا تَجَلَّى لِشَيْءٍ مِنْ خَلْقِهِ خَشَعَ لَهُ فَأَيُّهُمَا انْخَسَفَ فَصَلُّوا حَتَّى يَنْجَلِيَ أَوْ يُحْدِثَ اللَّهُ أَمْرًا» هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ الشَّيْخَيْنِ وَلَمْ يُخَرِّجَاهُ بِهَذَا اللَّفْظِ