Abdul-Rahman bin Samura reported,

Ati reported, "While I was shooting my arrows during the lifetime of the Messenger of Allah ﷺ, the sun was eclipsed. So I cast them aside and said, 'Let me 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, declaring Allah's greatness, praising Him, and proclaiming His oneness, until the sun was uncovered. Then he recited two surahs and performed two rakahs."In another narration, "I came to him while he was standing in prayer with his hands raised, glorifying Allah, praising Him, proclaiming His oneness, declaring His greatness, and supplicating, until the sun was uncovered. When the eclipse cleared, he recited two surahs and prayed two rakahs."

Azami 2984

Sahih

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

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

الأعظمي 2984صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Eclipse prayer
Section
Eclipse prayer, four bowings in two rakahs
Numbering
Jami al-Kamil 2984 (2nd edition)
Azami 2984