The sun was eclipsed during the time of the Messenger of Allah ﷺ, so he led the people in a long prayer. He stood with the people, then bowed, then stood again, then bowed, then stood once more, then bowed. He performed two units of prayer, with three bowings in each unit. After the third bowing, he prostrated, until on that day Some men fainted, and buckets of water had to be poured over them because of how long he kept them standing.When he bowed, he would say, "Allah is the Greatest," and when he raised his head, he would say, "Allah hears whoever praises Him." He did not finish the prayer until the sun became clear again.Then he stood, praised Allah and extolled Him, and said, "The sun and the moon do not eclipse for the death or life of anyone. They are two signs among the signs of Allah, by which He puts fear into you. So when they are eclipsed, hasten to the remembrance of Allah until they become clear again."
أخبرنا يعقوب بن إبراهيم قال حدثنا ابن علية قال أخبرني ابن جريج عن عطاء قال سمعت عبيد بن عمير يحدث قال حدثني من أصدق فظننت أنه يريد
كسفت الشمس على عهد رسول الله ﷺ فقام بالناس قياما شديدا يقوم بالناس ثم يركع ثم يقوم ثم يركع ثم يقوم ثم يركع فركع ركعتين في كل ركعة ثلاث ركعات ركع الثالثة ثم سجد حتى إن رجالا يومئذ يغشى عليهم حتى إن سجال الماء لتصب عليهم مما قام بهم يقول إذا ركع الله أكبر وإذا رفع رأسه سمع الله لمن حمده فلم ينصرف حتى تجلت الشمس فقام فحمد الله وأثنى عليه وقال إن الشمس والقمر لا ينكسفان لموت أحد ولا لحياته ولكن آيتان من آيات الله يخوفكم بهما فإذا كسفا فافزعوا إلى ذكر الله عز وجل حتى ينجليا