Ayesha reported,

The sun was eclipsed during the time of the Messenger of Allah ﷺ, so the Messenger of Allah ﷺ led the people in prayer. He stood for a long time, then bowed for a long time, then stood again for a long time, though shorter than the first standing, then bowed again, though shorter than the first bowing. Then he rose and prostrated. He did the same in the second cycle. When he finished, the sun had become clear again.He then addressed the people, praising Allah and extolling Him, and said, "The sun and the moon are two of the signs of Allah. They do not eclipse for the death of anyone or for his birth. So when you see that, call upon Allah, proclaim His greatness, and give in charity."Then he said, "Community of Muhammad, by Allah, no one is more jealous than Allah that His male servant should commit adultery or His female servant should commit adultery. Community of Muhammad, by Allah, if you knew what I know, you would laugh little and weep much."

Azami 2978

Sahih

عن عائشة قالت

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

الأعظمي 2978صحيح
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 2978 (2nd edition)
Azami 2978