There was an eclipse of the sun in the time of the Messenger of Allah (ﷺ) on a hot day…

Sunan Abu Dawud Book 3 Hadith 19

Sunan Abu Dawud #1179

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

Narrated Jabir:

There was an eclipse of the sun in the time of the Messenger of Allah (ﷺ) on a hot day. The Messenger of Allah (ﷺ)led his Companions in prayer and prolonged the standing until the people began to fall down. He then bowed and prolonged it; then he raised his head and prolonged (the stay); then he bowed and prolonged it; then he raised his head and prolonged (the stay); then he made two prostrations and then stood up; then he did in the same manner. He thus performed four bowings and four prostrations. Then the narrator narrated the rest of the tradition.

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

Grade: Sahih (Al-Albani)