Qabisa Hilali reported,

The sun was eclipsed during the time of the Messenger of Allah ﷺ, and he came out alarmed, dragging his garment. I was with him in Medina that day. He prayed two units, prolonging the standing in both, then finished as the eclipse cleared. He said, "These signs are how Allah instills fear in His servants. When you see them, pray as you would the most recent obligatory prayer you have performed."

Abu Dawud 1185

Daif

حدثنا موسى بن إسمعيل حدثنا وهيب حدثنا أيوب عن أبي قلابة

عن قبيصة الهلالي قال

كسفت الشمس على عهد رسول الله ﷺ فخرج فزعا يجر ثوبه وأنا معه يومئذ بالمدينة فصلى ركعتين فأطال فيهما القيام ثم انصرف وانجلت فقال إنما هذه الآيات يخوف الله بها فإذا رأيتموها فصلوا كأحدث صلاة صليتموها من المكتوبة

أبو داود 1185ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Istisqa
Chapter
Four rakah
Numbering
Darussalam 1185
Abu Dawud 1185