"We were sitting with the Prophet (ﷺ) when the sun became eclipsed. He leapt up, dragging his garment and prayed two rak'ahs until the eclipse was over."
Sunan an-Nasa'i Book 16, Hadith 6