Mishkat al-Masabih 1492
عَنْ أُبَيِّ بْنِ كَعْبٍ قَالَ: انْكَسَفَتِ الشَّمْسُ عَلَى عَهْدِ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فصلى بهم فَقَرَأَ بِسُورَة م الطُّوَلِ وَرَكَعَ خَمْسَ رَكَعَاتٍ وَسَجَدَ سَجْدَتَيْنِ ثُمَّ قَامَ الثَّانِيَةَ فَقَرَأَ بِسُورَةٍ مِنَ الطُّوَلِ ثُمَّ رَكَعَ خَمْسَ رَكَعَاتٍ وَسَجَدَ سَجْدَتَيْنِ ثُمَّ جَلَسَ كَمَا هُوَ مُسْتَقْبِلَ الْقِبْلَةِ يَدْعُو حَتَّى انْجَلَى كسوفها. رَوَاهُ أَبُو دَاوُد
From Ubayy ibn Kaʿb, who said: The sun was eclipsed in the time of the Messenger of Allah ﷺ, and he led them in prayer. He recited one of the long surahs, bowed five times and prostrated twice. Then he stood for the second [rakʿah] and recited one of the long surahs, then bowed five times and prostrated twice. Then he sat as he was, facing the qiblah, supplicating until its eclipse cleared. Reported by Abu Dawud.