The Messenger of Allah ﷺ prayed during an eclipse in a shaded area near Zamzam, bowing four times and prostrating four times. (Using translation from Nasāʾī 1477)
أَنَّ رَسُولَ اللهِ ﷺ «صَلَّى فِي كُسُوفٍ فِي صُفَّةِ زَمْزَمَ أَرْبَعَ رَكَعَاتٍ وَأَرْبَعَ سَجَدَاتٍ»