Abdullah bin Abbas reported,

It is reported from the Prophet ﷺ that he prayed during an eclipse. He recited, then bowed, then recited, then bowed, then recited, then bowed, then recited, then bowed, then prostrated. He said, "And the second rakah was like it."In another narration, the Messenger of Allah ﷺ, when the sun was eclipsed, prayed eight bowings within four prostrations. The same is reported from Ali.

Azami 2987

Sahih

عن ابن عباس

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

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