Narrated Abu Moosa: The sun eclipsed and the Prophet, peace be upon him, got up, being afraid that it might be the Hour (Day of Judgment). He went to the mosque and offered the Salat with a long Qiyam (standing), bowing and prostration that I had never seen him doing. Then he said, “These signs, which Allah sends do not occur because of the life or death of somebody, but Allah frightens with them Ibadahu (His slaves or His worshippers).
So when you see anything thereof, proceed to remember Allah, invoke Him and ask for His Forgiveness.”
[2: 167- O.B. Sahih Al-Bukhari]
[“He asks, “When is the Day of Resurrection to be?” When the eyes are dazzled and the moon is eclipsed and the sun and the moon are brought together, then the same man will say, “Whither to escape?” By no means! There will be no refuge anywhere. Only before your Lord that Day shall be the place of rest. Man shall be told on that Day all his former and later deeds. Nay, man knows his own self best, even though he may offer many excuses.” Surah Al-Qiyamah: 75: 6-15 ]