The Messenger of Allah ﷺ prayed when there was an eclipse of the sun like our prayer, bowing and prostrating.
أَنَّ رَسُولَ اللَّهِ ﷺ صَلَّى حِينَ انْكَسَفَتِ الشَّمْسُ مِثْلَ صَلاَتِنَا يَرْكَعُ وَيَسْجُدُ
The Messenger of Allah ﷺ prayed when there was an eclipse of the sun like our prayer, bowing and prostrating.
أَنَّ رَسُولَ اللَّهِ ﷺ صَلَّى حِينَ انْكَسَفَتِ الشَّمْسُ مِثْلَ صَلاَتِنَا يَرْكَعُ وَيَسْجُدُ
[Machine] The sun was setting on the time of the Messenger of Allah ﷺ , so he prayed. The Messenger of Allah ﷺ used to perform rukoo' (bowing) and sujood (prostration). Hajjaj said, "Our prayers are like his prayers."
انْكَسَفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ فَصَلَّى وَكَانَ رَسُولُ اللهِ ﷺ يَرْكَعُ وَيَسْجُدُ قَالَ حَجَّاجٌ مِثْلَ صَلَاتِنَا
The Messenger of Allah ﷺ prayed when there was an eclipse of the sun like our prayer, bowing and prostrating. (Using translation from Nasāʾī 1489)
أَنَّ رَسُولَ اللهِ ﷺ «صَلَّى حِينَ انْكَسَفَتِ الشَّمْسُ مِثْلَ صَلَاتِنَا يَرْكَعُ وَيَسْجُدُ»