The Messenger of Allah (ﷺ) prayed on the day the sun was eclipsed, bowing four times in two rak'ahs and prostrating four times.
Sunan an-Nasa'i Book 16, Hadith 11