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."
كسفت الشمس على عهد رسول الله ﷺ فقام فصلى للناس، فأطال القيام ثم ركع فأطال الركوع ثم قام فأطال القيام وهو دون القيام الأول، ثم ركع فأطال الركوع وهو دون الركوع الأول، ثم سجد فأطال السجود، ثم رفع ثم سجد فأطال السجود وهو دون السجود الأول، ثم قام فصلى ركعتين، وفعل فيهما مثل ذلك ثم سجد سجدتين يفعل فيهما مثل ذلك حتى فرغ من صلاته، ثم قال: إن الشمس والقمر آيتان من آيات الله وإنهما لا ينكسفان لموت أحد ولا لحياته، فإذا رأيتم ذلك فافزعوا إلى ذكر الله عز وجل وإلى الصلاة.
Nasai (1483) narrated it from Muhammad bin Ubaydullah bin Abdul-Azim, who said, Ibrahim Sablan told me, who said, Abbad bin Abbad Muhallabi told us, from Muhammad bin Amr, from Abu Salama, from Abu Hurairah, and he mentioned it.Its chain is hasan because of Muhammad bin Amr, who is Ibn Alqama bin Waqqas Laythi. Ibrahim Sablan is Ibn Ziyad.His saying, "so he prayed two rakahs," means that he performed two bowings.