We were with Allah's Messenger (ﷺ) when the sun eclipsed. Allah's Messenger (ﷺ) stood up…

Sahih al-Bukhari Book 16 Hadith 1

Sahih al-Bukhari #1040

Eclipses 16:1

Narrated Abu Bakra:

We were with Allah's Messenger (ﷺ) when the sun eclipsed. Allah's Messenger (ﷺ) stood up dragging his cloak till he entered the Mosque. He led us in a two-rak`at prayer till the sun (eclipse) had cleared. Then the Prophet (p.b.u.h) said, "The sun and the moon do not eclipse because of someone's death. So whenever you see these eclipses pray and invoke (Allah) till the eclipse is over."

Chapter: As-Salat (the prayer) during a solar eclipse

Grade: Sahih