Dua of the Prophet ﷺ for his Ummah during an eclipse
[Machine] The sun became eclipsed during the time of the Prophet Muhammad (PBUH), and he stood up for prayer, and we stood up with him. He prolonged the standing until we thought that he was not going to bow down (in rukū'). Then he bowed down (in rukū'), and hardly raised his head. Then he prostrated and hardly raised his head. Then he sat down and hardly prostrated. Then he prostrated again and hardly raised his head. Then he performed in the second unit of prayer, just like he did in the first unit. He blew into the ground and wept while he was prostrating in the second unit of prayer, and he said, "My Lord, why do you punish them and I am among them? My Lord, why do you punish us while we seek your forgiveness?" Then he raised his head while the sun appeared and he completed his prayer. Then he praised and glorified Allah and said, "O people, surely the sun and the moon are two signs from the signs of Allah, the Mighty and Majestic. So when one of them becomes eclipsed, seek refuge in the mosques. By the One in whose hand is my soul, Paradise was shown to me until if I had wanted, I could have plucked some of its branches, and Hellfire was shown to me until I became afraid that it might envelope you. And I saw in it a woman who was being punished for a cat that she had tied and did not feed or give to drink, nor did she allow it to eat from the vermin of the earth. Whenever it approached, she would torment it, and whenever it turned away, she would torment it. And I saw in it a man from the Banū Dādāʿ who was being tormented and I saw the owner of the mill reclining over fire onto his millstone, and he used to steal from the hājjāj with his millstone, and when they became aware, he would say, 'I am not the one who stole from you, rather it is my millstone that has been stealing.'"
كَسَفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ فَقَامَ وَقُمْنَا مَعَهُ فَأَطَالَ الْقِيَامَ حَتَّى ظَنَنَّا أَنَّهُ لَيْسَ بِرَاكِعٍ ثُمَّ رَكَعَ فَلَمْ يَكَدْ يَرْفَعُ رَأْسَهُ ثُمَّ رَفَعَ فَلَمْ يَكَدْ يَسْجُدُ ثُمَّ سَجَدَ فَلَمْ يَكَدْ يَرْفَعُ رَأْسَهُ ثُمَّ جَلَسَ فَلَمْ يَكَدْ يَسْجُدُ ثُمَّ سَجَدَ فَلَمْ يَكَدْ يَرْفَعُ رَأْسَهُ ثُمَّ فَعَلَ فِي الرَّكْعَةِ الثَّانِيَةِ كَمَا فَعَلَ فِي الْأُولَى وَجَعَلَ يَنْفُخُ فِي الْأَرْضِ وَيَبْكِي وَهُوَ سَاجِدٌ فِي الرَّكْعَةِ الثَّانِيَةِ وَجَعَلَ يَقُولُ رَبِّ لِمَ تُعَذِّبُهُمْ وَأَنَا فِيهِمْ؟ رَبِّ لِمَ تُعَذِّبُنَا وَنَحْنُ نَسْتَغْفِرُكَ؟ فَرَفَعَ رَأْسَهُ وَقَدْ تَجَلَّتِ الشَّمْسُ وَقَضَى صَلَاتَهُ فَحَمِدَ اللهَ وَأَثْنَى عَلَيْهِ ثُمَّ قَالَ أَيُّهَا النَّاسُ إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللهِ ﷻ فَإِذَا كَسَفَ أَحَدُهُمَا فَافْزَعُوا إِلَى الْمَسَاجِدِ فَوَالَّذِي نَفْسِي بِيَدِهِ لَقَدْ عُرِضَتْ عَلَيَّ الْجَنَّةُ حَتَّى لَوْ أَشَاءُ لَتَعَاطَيْتُ بَعْضَ أَغْصَانِهَا وَعُرِضَتْ عَلَيَّ النَّارُ حَتَّى إِنِّي لَأُطْفِئُهَا خَشْيَةَ أَنْ تَغْشَاكُمْ وَرَأَيْتُ فِيهَا امْرَأَةً مِنْ حِمْيَرَ سَوْدَاءَ طُوَالَةً تُعَذَّبُ بِهِرَّةٍ لَهَا تَرْبِطُهَا فَلَمْ تُطْعِمْهَا وَلَمْ تَسْقِهَا وَلَا تَدَعُهَا تَأْكُلُ مِنْ خَشَاشِ الْأَرْضِ كُلَّمَا أَقْبَلَتْ نَهَشَتْهَا وَكُلَّمَا أَدْبَرَتْ نَهَشَتْهَا وَرَأَيْتُ فِيهَا أَخَا بَنِي دَعْدَعٍ وَرَأَيْتُ صَاحِبَ الْمِحْجَنِ مُتَّكِئًا فِي النَّارِ عَلَى مِحْجَنِهِ كَانَ يَسْرِقُ الْحَاجَّ بِمِحْجَنِهِفَإِذَا عَلِمُوا بِهِ قَالَ لَسْتُ أَنَا أَسْرِقُكُمْ إِنَّمَا تَعَلَّقَ بِمِحْجَنِي