Ayesha reported,

The sun was eclipsed during the time of the Messenger of Allah ﷺ, so the Messenger of Allah ﷺ led the people in prayer. In the course of it, he said, "The sun and the moon are two signs among the signs of Allah. They are not eclipsed for the death or the life of anyone. So when you see that, call upon Allah, magnify Him, and give in charity..." and the rest of the hadith.

Azami 2995

Sahih

عن عائشة قالت

خسفت الشمس في عهد رسول الله ﷺ، فصلى رسول الله ﷺ بالناس، وفيه… ثم قال: إن الشمس والقمر أيتان من آيات الله لا يخسفان لموت أحد ولا لحياته، فإذا رأيتم ذلك، فادعوا الله، وكبروا، وتصدقوا… الحديث.

الأعظمي 2995صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Eclipse prayer
Section
Recommendation of charity during an eclipse
Numbering
Jami al-Kamil 2995 (2nd edition)
Azami 2995