Sunan an-Nasa'i, Book 16, Hadith 30 (Nasa'i 1493)

It was narrated from An-Nu'man bin Bashir that :

The Prophet (ﷺ) said: "If there is an eclipse of the sun or the moon, pray like the last obligatory prayer you did before that."