[Machine] The sun set, and the Messenger of Allah ﷺ came out and performed two units of prayer. He recited in them for a long time until the twilight disappeared. He then said, "Indeed, the sun and the moon are two signs among the signs of Allah, by which He frightens His servants. So when you see that, pray as if you are praying the most recent prayer you have performed from the obligatory prayers."
انْكَسَفَتِ الشَّمْسُ فَخَرَجَ رَسُولُ اللهِ ﷺ فَصَلَّى رَكْعَتَيْنِ فَأَطَالَ فِيهِمَا الْقِرَاءَةَ فَانْجَلَتْ فَقَالَ إِنَّ الشَّمْسَ وَالْقَمَرَ آيَتَانِ مِنْ آيَاتِ اللهِ يُخَوِّفُ بِهِمَا عِبَادَهُ فَإِذَا رَأَيْتُمْ ذَلِكَ فَصَلُّوا كَأَحْدَثِ صَلَاةٍ صَلَّيْتُمُوهَا مِنَ الْمَكْتُوبَةِ