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.
abudawud:1193Aḥmad b. Abū Shuʿayb al-Ḥarrānī > al-Ḥārith b. ʿUmayr al-Baṣrī > Ayyūb al-Sakhtiyānī > Abū Qilābah > al-Nuʿmān b. Bashīr

There was an eclipse of the sun in the time of the Prophet ﷺ. He began to pray a series of pairs of rak'ahs enquiring about the sun (at the end of them) till it became clear.  

أبو داود:١١٩٣حَدَّثَنَا أَحْمَدُ بْنُ أَبِي شُعَيْبٍ الْحَرَّانِيُّ حَدَّثَنِي الْحَارِثُ بْنُ عُمَيْرٍ الْبَصْرِيُّ عَنْ أَيُّوبَ السَّخْتِيَانِيِّ عَنْ أَبِي قِلاَبَةَ عَنِ النُّعْمَانِ بْنِ بَشِيرٍ قَالَ

كُسِفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللَّهِ ﷺ فَجَعَلَ يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ وَيَسْأَلُ عَنْهَا حَتَّى انْجَلَتْ