Ayesha reported,

The sun was eclipsed during the lifetime of the Prophet ﷺ, so he went out to the mosque and the people lined up in rows behind him. He pronounced the takbir and recited a long recitation, then pronounced the takbir and made a long bowing. Then he said, "Allah hears whoever praises Him," and stood up without prostrating, and recited another long recitation, somewhat shorter than the first. Then he pronounced the takbir and made another long bowing, somewhat shorter than the first. Then he said, "Allah hears whoever praises Him. Our Lord, to You belongs all praise," and then prostrated. He did the same in the second rakah, completing four bowings in two rakahs with four prostrations. The sun became clear before he finished.Then he stood and praised Allah as He deserves, then said, "These two are signs among the signs of Allah. They are not eclipsed for anyone's death or life, so when you see them, hasten to prayer."

Azami 2997

Sahih

عن عائشة قالت

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

الأعظمي 2997صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Eclipse prayer
Section
Khutbah of the imam after the eclipse prayer
Numbering
Jami al-Kamil 2997 (2nd edition)
Azami 2997