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.”
Sunan Ibn Majah Book 5, Hadith 459