Abdul-Rahman bin Samura reported,

While I was shooting my arrows during the lifetime of the Messenger of Allah ﷺ, the sun was eclipsed. I cast the arrows aside and said to myself, "I must go and see what the Messenger of Allah ﷺ does during this eclipse of the sun today."I came up to him and found him with his hands raised, supplicating, exclaiming Allah's greatness, praising Him, and declaring His oneness, until the sun was uncovered. Then he recited two surahs and prayed two units of prayer.

Muslim 2118

Sahih

و حدثني عبيد الله بن عمر القواريري حدثنا بشر بن المفضل حدثنا الجريري عن أبي العلاء حيان بن عمير

عن عبد الرحمن بن سمرة قال

بينما أنا أرمي بأسهمي في حياة رسول الله ﷺ إذ انكسفت الشمس فنبذتهن وقلت لأنظرن إلى ما يحدث لرسول الله ﷺ في انكساف الشمس اليوم فانتهيت إليه وهو رافع يديه يدعو ويكبر ويحمد ويهلل حتى جلي عن الشمس فقرأ سورتين وركع ركعتين

مسلم 2118صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Eclipse
Chapter
Call for the eclipse prayer, "The prayer is congregating"
Numbering
Darussalam 2118
Muslim 2118