´It was narrated from Qabisah Al-Hilali:` That there was an eclipse of the sun and the Prophet of Allah (ﷺ) prayed two rak'ahs until it ended. Then he said: "The sun and the moon do not become eclipsed for the death of anyone, but they are two of His creations. Allah, the Mighty and Sublime, causes whatever He wants to happen in His creation. If Allah (SWT), the Mighty and Sublime, manifests Himself to any of His creation, it humbles itself before Him, so if either of them (solar or lunar eclipse) happens, pray until it is over or until Allah causes something to happen."
Hadith Referenceسنن نسائي / كتاب الكسوف / 1488
Hadith Gradingالألبانی:ضعيف | زبیر علی زئی:ضعيف، إسناده ضعيف، انظر الحديث السابق (1487) انوار الصحيفه، صفحه نمبر 332
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 Madina. 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.
Shaykh Umar Farooq Saeedi
1185. Commentary: In this, there is an instruction to perform the eclipse prayer (Salat al-Kusuf) in the manner of an obligatory (fard) prayer, but this narration is weak in its chain of transmission; therefore, it is not valid as evidence.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 1185