Numan bin Bashir reported,

The sun was eclipsed during the time of the Messenger of Allah ﷺ, so he hurried out in alarm, dragging his garment, until he came to the mosque. He continued praying until the eclipse cleared, then he said, "Some people claim that the sun and moon are eclipsed only because of the death of one of the great ones, but it is not so. The sun and moon are not eclipsed for the death or life of anyone. When Allah manifests Himself to anything in His creation, it submits humbly before Him."

Ibn Majah 1262

Daif

حدثنا محمد بن المثنى وأحمد بن ثابت وجميل بن الحسن قالوا حدثنا عبد الوهاب حدثنا خالد الحذاء عن أبي قلابة

عن النعمان بن بشير قال

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

ابن ماجه 1262ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Eclipse prayer
Numbering
Darussalam 1262
Ibn Majah 1262