The sun was eclipsed during the time of the Messenger of Allah ﷺ, so the Messenger of Allah ﷺ led the people in prayer. He recited at length, then bowed for a long time. Then he raised his head and recited at length again, though shorter than the first recitation. Then he bowed for a long time, though shorter than the first bowing. Then he raised his head and prostrated. He did the same in the second cycle.
حدثنا محمد بن عبد الملك بن أبي الشوارب حدثنا يزيد بن زريع حدثنا معمر عن الزهري عن عروة
خسفت الشمس على عهد رسول الله ﷺ فصلى رسول الله ﷺ بالناس فأطال القراءة ثم ركع فأطال الركوع ثم رفع رأسه فأطال القراءة هي دون الأولى ثم ركع فأطال الركوع وهو دون الأول ثم رفع رأسه فسجد ثم فعل مثل ذلك في الركعة الثانية
Agreed upon [by Bukhari and Muslim]. Bukhari narrated it in the Book of the Eclipse, Chapter, The Sun Does Not Eclipse for Anyone's Death or Life, hadith 1058, from the hadith of Mamar. Muslim narrated it, hadith 3/901, from the hadith of Zuhri, with the same wording.