The Messenger of Allah ﷺ prayed at the solar eclipse as reported in the tradition narrated by 'Urwah from Aishah from the Messenger of Allah ﷺ that he offered two rak'ahs of prayer bowing twice in each rak'ah.
أَنَّ رَسُولَ اللَّهِ ﷺ صَلَّى فِي كُسُوفِ الشَّمْسِ مِثْلَ حَدِيثِ عُرْوَةَ عَنْ عَائِشَةَ عَنْ رَسُولِ اللَّهِ ﷺ أَنَّهُ صَلَّى رَكْعَتَيْنِ فِي كُلِّ رَكْعَةٍ رَكْعَتَيْنِ