Abdullah bin Umar reported,

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

Bukhari 1042

Sahih

حدثنا أصبغ قال أخبرني ابن وهب قال أخبرني عمرو عن عبد الرحمن بن القاسم حدثه عن أبيه

عن ابن عمر رضي الله عنهما

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

البخاري 1042صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Eclipse
Chapter
Prayer during a solar eclipse
Numbering
Darussalam 1042
Bukhari 1042