Abu Hurairah reported,

One morning the Messenger of Allah ﷺ set out riding when the sun was eclipsed, so he returned in the forenoon. The Messenger of Allah ﷺ passed through the midst of the dwellings, then he stood and prayed, and the people stood behind him. He stood for a long time, then made a long ruku, then rose and stood for a long time, though shorter than the first standing. Then he made a long ruku, though shorter than the first ruku, then rose and performed a long sujud.Then he stood and remained standing for a long time, though shorter than the first standing, then made a long ruku, though shorter than the first ruku. Then he stood for a long time, though shorter than the first standing, then made a long ruku, though shorter than the first ruku, then performed sujud, which was shorter than the first sujud.Then he finished the prayer, and the Messenger of Allah ﷺ said whatever Allah willed him to say. Then he commanded them to seek refuge from the punishment of the grave.

Bukhari 1056

Sahih

ثم ركب رسول الله ﷺ ذات غداة مركبا فكسفت الشمس فرجع ضحى فمر رسول الله ﷺ بين ظهراني الحجر ثم قام فصلى وقام الناس وراءه فقام قياما طويلا ثم ركع ركوعا طويلا ثم رفع فقام قياما طويلا وهو دون القيام الأول ثم ركع ركوعا طويلا وهو دون الركوع الأول ثم رفع فسجد سجودا طويلا ثم قام فقام قياما طويلا وهو دون القيام الأول ثم ركع ركوعا طويلا وهو دون الركوع الأول ثم قام قياما طويلا وهو دون القيام الأول ثم ركع ركوعا طويلا وهو دون الركوع الأول ثم سجد وهو دون السجود الأول ثم انصرف فقال رسول الله ﷺ ما شاء الله أن يقول ثم أمرهم أن يتعوذوا من عذاب القبر

البخاري 1056صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Eclipse
Chapter
Eclipse prayer in the masjid
Numbering
Darussalam 1056
Bukhari 1056