The Messenger of Allah ﷺ prayed on the day the sun was eclipsed, performing four bowings within two units of prayer and four prostrations.
أخبرنا عمرو بن عثمان بن سعيد قال حدثنا الوليد عن ابن نمر وهو عبد الرحمن بن نمر عن الزهري عن كثير بن عباس ح وأخبرني عمرو بن عثمان قال حدثنا الوليد عن الأوزاعي عن الزهري قال أخبرني كثير بن عباس
أن رسول الله ﷺ صلى يوم كسفت الشمس أربع ركعات في ركعتين وأربع سجدات
Muslim narrated it in the Book of the Eclipse, Chapter on the Eclipse Prayer, no. 902, from the hadith of Zuhri, and Bukhari narrated it in the Book of the Eclipse, Chapter on the Imam's Sermon during the Eclipse, no. 1046, from the hadith of Kathir bin Abbas by this route, and it is in Al-Kubra, no. 1853.