Sunan an-Nasa'i, Book 16, Hadith 6 (Nasa'i 1469)

It was narrated that Abu Bakrah said:

"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."