When there was a solar eclipse the Messenger of Allah (way peace be upon him) observed eight ruku's and four prostrations (in two rak'ahs). This has been narrated by 'Ali also.
صَلَّى رَسُولُ اللَّهِ ﷺ حِينَ كَسَفَتِ الشَّمْسُ ثَمَانَ رَكَعَاتٍ فِي أَرْبَعِ سَجَدَاتٍ وَعَنْ عَلِيٍّ مِثْلُ ذَلِكَ