When there was a solar eclipse the Messenger of Allah (way peace be upon him) observed…

Sahih Muslim Book 10 Hadith 20

Sahih Muslim #908

The Book of Prayer - Eclipses 10:20

Ibn 'Abbas reported:

When there was a solar eclipse the Messenger of Allah (way peace be upon him) observed eight ruku's and four prostrations (in two rak'ahs). This has been narrated by 'Ali also.

Chapter: Those Who Say That He Prayed With Eight Bowings And Four Prostrations

Grade: Sahih