The Messenger of Allah (ﷺ) prayed at the solar eclipse as reported in the tradition…

Sunan Abu Dawud Book 3 Hadith 21

Sunan Abu Dawud #1181

The Book Of The Prayer For Rain (Kitab al-Istisqa') 3:21

Narrated Abd Allah b. 'Abbas:

The Messenger of Allah (ﷺ) prayed at the solar eclipse as reported in the tradition narrated by 'Urwah from Aishah from the Messenger of Allah (ﷺ) that he offered two rak'ahs of prayer bowing twice in each rak'ah.

Chapter: Whoever Said That It Should Be Prayed With Four Rak'ahs

Grade: Sahih (Al-Albani)