The Messenger of Allah (ﷺ) prayed during an eclipse in a shaded area near Zamzam, bowing four times and prostrating four times.
Sunan an-Nasa'i Book 16, Hadith 19