Abdullah bin Umar reported,

He used to report from the Prophet ﷺ that the sun and the moon do not eclipse for the death of anyone or for his life, but they are two signs among the signs of Allah, so when you see them, pray.

Azami 2975

Sahih

عن ابن عمر

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

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