It was narrated that Abu Mas’ud said: The Messenger of Allah (ﷺ) said: “The sun and the moon do not become eclipsed for the death of anyone among mankind. If you see that, then stand and perform prayer.”
SahihSahihSahih - Bukhari And MuslimBook 5 · Hadith 459