عَنْ أَسْمَاءَ بِنْتِ أَبِي بَكْرٍ رَضِيَ اللَّهُ عَنْهُمَا بِنَحْوِهِ وَفِيهِ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ يَا أَيُّهَا النَّاسُ إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللَّهِ لَا يَخْسِفَانِ لِمَوْتِ أَحَدٍ وَلَا لِحَيَاتِهِ فَإِذَا رَأَيْتُمْ ذَلِكَ فَافْزَعُوا إِلَى الصَّلَاةِ وَإِلَى الصَّدَقَةِ وَإِلَى ذِكْرِ اللَّهِ
A similar hadith is narrated from Sayyida Asma bint Abi Bakr (may Allah be pleased with her), except that it states: O people! Indeed, the sun and the moon are two signs among the signs of Allah Almighty; they are not eclipsed due to anyone's death nor due to anyone's life. When you see this, then seek refuge in prayer, charity, and the remembrance of Allah.