Abdullah bin Umar reported,

He used to report that the Prophet ﷺ said, "The sun and the moon do not eclipse for the death or life of anyone, but they are two of Allah's signs. When you see them eclipse, perform the prayer."

Azami 8213

Sahih

عن عبد الله بن عمر

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

الأعظمي 8213صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Beginning of creation
Section
Sun and the moon are two signs among the signs of Allah, Allah created them for great wisdoms
Numbering
Jami al-Kamil 8213 (2nd edition)
Azami 8213