Mishkat al-Masabih 1484
وَعَنْ أَبِي مُوسَى قَالَ: خَسَفَتِ الشَّمْسُ فَقَامَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَزِعًا يَخْشَى أَنْ تَكُونَ السَّاعَةَ فَأَتَى الْمَسْجِدَ فَصَلَّى بِأَطْوَلِ قِيَامٍ وَرُكُوعٍ وَسُجُودٍ مَا رَأَيْتُهُ قَطُّ يَفْعَلُهُ وَقَالَ: «هَذِهِ الْآيَاتُ الَّتِي يُرْسِلُ اللَّهُ لَا تَكُونُ لِمَوْتِ أَحَدٍ وَلَا لِحَيَاتِهِ وَلَكِنْ يُخَوِّفُ اللَّهُ بِهَا عِبَادَهُ فَإِذَا رَأَيْتُمْ شَيْئًا مِنْ ذَلِكَ فَافْزَعُوا إِلَى ذِكْرِهِ وَدُعَائِهِ واستغفاره»
From Abu Musa, who said: The sun was eclipsed, and the Prophet ﷺ got up alarmed, fearing that it was the Hour. He came to the mosque and prayed with the longest standing, bowing and prostration I had ever seen him do. And he said: "These signs which Allah sends do not happen for the death of anyone nor for his life; rather, Allah frightens His servants with them. So when you see any of that, hasten to remember Him, call upon Him and seek His forgiveness."