The Messenger of Allah ﷺ said, "The sun and the moon do not eclipse for the death or birth of anyone, but they are two of the signs of Allah. When you see them, perform the prayer."
حدثنا مسدد قال حدثنا يحيى بن سعيد عن إسماعيل قال حدثني قيس
قال رسول الله ﷺ الشمس والقمر لا ينكسفان لموت أحد ولا لحياته ولكنهما آيتان من آيات الله فإذا رأيتموهما فصلوا