Sunan Abi Dawud 1185
Grading supplied with this record: Da'if (Al-Albani)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنَّمَا هَذِهِ الآيَاتُ يُخَوِّفُ اللَّهُ بِهَا فَإِذَا رَأَيْتُمُوهَا فَصَلُّوا كَأَحْدَثِ صَلاَةٍ صَلَّيْتُمُوهَا مِنَ الْمَكْتُوبَةِ "
Narrated Qabisah al-Hilali:
There was an eclipse of the sun in the time of the Messenger of Allah (ﷺ). He came out bewildered pulling his garment, and I was in his company at Medina. He prayed two rak'ahs and stood for a long time in them. He then departed and the sun became bright. He then said: There are the signs by means of which Allah, the Exalted, produces dread (in His servants). When you see anything of this nature, then pray as you are praying a fresh obligatory prayer.
Full reference and source
Sunan Abi Dawud 1185 In-book : Book 3, Hadith 25 English translation : Book 3, Hadith 1181
View source on Sunnah.com (opens in a new tab)