I heard Ubayd bin Umayr say, "Someone whom I trust told me, and I think he meant Ayesha, that the sun was eclipsed during the time of the Messenger of Allah ﷺ. He stood for a very long time. He would stand, then bow, then stand, then bow, then stand, then bow, performing two units of prayer in three bowings and four prostrations. By the time he finished, the sun had become clear again. Whenever he bowed, he would say, 'Allah is the greatest,' and then bow. When he raised his head, he would say, 'Allah hears whoever praises Him,' then he stood and praised Allah and extolled Him. Then he said, 'The sun and the moon do not eclipse for the death or the life of anyone, but they are two of the signs of Allah by which Allah strikes fear into His servants. So when you see an eclipse, remember Allah until they become clear again.'"
سمعت عبيد بن عمير يقول: حدثني من أصدق- حسبته يريد عائشة- أن الشمس انكسفت على عهد رسول الله ﷺ فقام قياما شديدا، يقوم قائما ثم يركع، ثم يقوم ثم يركع، ثم يقوم ثم يركع ركعتين في ثلاث ركعات وأربع سجدات، فانصرف، وقد تجلت الشمس، وكان إذا ركع قال: الله أكبر ثم يركع، وإذا رفع رأسه قال: سمع الله لمن حمده فقام فحمد الله، وأثنى عليه، ثم قال: إن الشمس والقمر لا يكسفان لموت أحد ولا لحياته، ولكنهما من آيات الله يخوف الله بهما عباده، فإذا رأيتم كسوفا فاذكروا الله حتى ينجليا.
Muslim narrated it in the chapter on eclipses (901), from Ishaq bin Ibrahim, who said, Muhammad bin Bakr told us, who said, Ibn Jurayj told us, who said, I heard Ata, and he then related it, except for his statement "two rakats in three rakats," which is anomalous.It was also narrated through another route, from Qatada, from Ata bin Abu Rabah, from Ubayd bin Umayr, from Ayesha (without doubt), that the Prophet of Allah ﷺ prayed six rakats and four prostrations. His statement "two rakats in three rakats" carries the same meaning as "six rakats and four prostrations," that is, he prayed two rakats, and in each rakah there were three bowings and two prostrations.This statement, despite the reliability of its narrators, is anomalous and contradicts what has been established as sahih, namely that he ﷺ prayed two rakats, bowing twice in each rakah. The error in it perhaps came from Ata bin Abu Rabah, as mentioned before.