Ibn 'Abbas reported: When there was a solar eclipse the Messenger of Allah (ﷺ) observed eight ruku's and four prostrations (in two rak'ahs). This has been narrated by 'Ali also.
Hadith ReferenceSahih Muslim / The Book of Prayer - Eclipses / Hadith: 908