Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
nasai-kubra:1886Muḥammad b. al-Muthanná > Muʿādh b. Hishām from my father > Qatādah > Abū Qilābah > al-Nuʿmān b. Bashīr > Nabī Allāh ﷺ

The Prophet ﷺ said: "If there is an eclipse of the sun or the moon, pray like the last obligatory prayer you did before that." (Using translation from Nasāʾī 1488)  

الكبرى للنسائي:١٨٨٦أَخْبَرَنَا مُحَمَّدُ بْنُ الْمُثَنَّى قَالَ حَدَّثَنَا مُعَاذُ بْنُ هِشَامٍ قَالَ حَدَّثَنِي أَبِي عَنْ قَتَادَةَ عَنْ أَبِي قِلَابَةَ عَنِ النُّعْمَانِ بْنِ بَشِيرٍ أَنَّ نَبِيَّ اللهِ ﷺ قَالَ

«إِذَا انْخَسَفَتِ الشَّمْسُ وَالْقَمَرُ فَصَلُّوا كَأَحْدَثِ صَلَاةٍ صَلَّيْتُمُوهَا»  


See similar narrations below:

Collected by Nasāʾī, Suyūṭī
nasai:1488Muḥammad b. al-Muthanná > Muʿādh b. Hishām from my father > Qatādah > Abū Qilābah > al-Nuʿmān b. Bashīr

The Prophet ﷺ said: "If there is an eclipse of the sun or the moon, pray like the last obligatory prayer you did before that."  

النسائي:١٤٨٨أَخْبَرَنَا مُحَمَّدُ بْنُ الْمُثَنَّى عَنْ مُعَاذِ بْنِ هِشَامٍ قَالَ حَدَّثَنِي أَبِي عَنْ قَتَادَةَ عَنْ أَبِي قِلاَبَةَ عَنِ النُّعْمَانِ بْنِ بَشِيرٍ

أَنَّ النَّبِيَّ ﷺ قَالَ إِذَا خَسَفَتِ الشَّمْسُ وَالْقَمَرُ فَصَلُّوا كَأَحْدَثِ صَلاَةٍ صَلَّيْتُمُوهَا