Someone I trust as truthful told me, and I believe he meant Ayesha, that the sun was eclipsed during the time of the Messenger of Allah ﷺ. He stood for a very long time, standing, then bowing, then standing, then bowing, then standing, then bowing, performing two cycles of prayer with three bowings and four prostrations in each. By the time he finished, the sun had become clear again.Whenever he bowed he would say, "Allah is the Greatest," and then bow, and whenever he raised his head he would say, "Allah hears whoever praises Him." Then he stood and praised Allah and extolled Him, then said, "The sun and the moon are not eclipsed for the death of anyone or for his life, but they are two of the signs of Allah by which Allah frightens His servants. So when you see an eclipse, remember Allah until they become clear again."
و حدثنا إسحق بن إبراهيم أخبرنا محمد بن بكر أخبرنا ابن جريج قال سمعت عطاء يقول سمعت
حدثني من أصدق حسبته يريد عائشة أن الشمس انكسفت على عهد رسول الله ﷺ فقام قياما شديدا يقوم قائما ثم يركع ثم يقوم ثم يركع ثم يقوم ثم يركع ركعتين في ثلاث ركعات وأربع سجدات فانصرف وقد تجلت الشمس وكان إذا ركع قال الله أكبر ثم يركع وإذا رفع رأسه قال سمع الله لمن حمده فقام فحمد الله وأثنى عليه ثم قال إن الشمس والقمر لا يكسفان لموت أحد ولا لحياته ولكنهما من آيات الله يخوف الله بهما عباده فإذا رأيتم كسوفا فاذكروا الله حتى ينجليا