Sahih Muslim – Hadith No : 2154

Abu Mas’ud reported that the Messenger of Allah (may peace be upon him) said: Verily the sun and the moon do not eclipse on account of the death of any one of the people, but they are the two signs among the signs of Allah. So when you see it, stand up and observe prayer.

Hadith In Arabic Text :

وحدثنا عبيد الله بن معاذ العنبري، ويحيى بن حبيب، قالا حدثنا معتمر، عن إسماعيل، عن قيس، عن أبي مسعود، أن رسول الله صلى الله عليه وسلم قال ‏”‏ إن الشمس والقمر ليس ينكسفان لموت أحد من الناس ولكنهما آيتان من آيات الله فإذا رأيتموه فقوموا فصلوا ‏”‏ ‏.‏

Chapter : The Book of Prayer (Eclipse) – كتاب الكسوف