Abu Mas'ud reported that the Messenger of Allah (ﷺ) 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.