There was an eclipse of the sun in the time of the Prophet ﷺ. He began to pray a series of pairs of rak'ahs enquiring about the sun (at the end of them) till it became clear.
كُسِفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللَّهِ ﷺ فَجَعَلَ يُصَلِّي رَكْعَتَيْنِ رَكْعَتَيْنِ وَيَسْأَلُ عَنْهَا حَتَّى انْجَلَتْ