Abu Hurairah reported,

The sun was eclipsed during the time of the Messenger of Allah ﷺ, so he stood and led the people in prayer. He prolonged the standing, then bowed and prolonged the bowing. Then he stood again and prolonged the standing, though it was shorter than the first standing. Then he bowed and prolonged the bowing, though it was shorter than the first bowing. Then he prostrated and prolonged the prostration. Then he raised his head and prostrated again, prolonging the prostration, though it was shorter than the first prostration. Then he stood and prayed two units, doing the same in them, then he made two prostrations, doing the same in them, until he finished his prayer.Then he said, "The sun and the moon are two signs among the signs of Allah. They are not eclipsed for the death of anyone nor for his life. So when you see that, hasten to the remembrance of Allah عز وجل and to prayer."

Azami 2982

Hasan

عن أبي هريرة قال

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

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