Abdullah bin Umar reported,

He used to report that the Prophet ﷺ said, "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, perform the prayer."

Bukhari 3201

Sahih

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

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

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

البخاري 3201صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Beginning of creation
Chapter
Characteristics of the sun and moon
Numbering
Darussalam 3201
Bukhari 3201