The Messenger of Allah ﷺ prayed two rak'ahs like this prayer of yours, and he mentioned the eclipse of the sun.
أَنَّ رَسُولَ اللَّهِ ﷺ صَلَّى رَكْعَتَيْنِ مِثْلَ صَلاَتِكُمْ هَذِهِ وَذَكَرَ كُسُوفَ الشَّمْسِ
The Messenger of Allah ﷺ prayed two rak'ahs like this prayer of yours, and he mentioned the eclipse of the sun.
أَنَّ رَسُولَ اللَّهِ ﷺ صَلَّى رَكْعَتَيْنِ مِثْلَ صَلاَتِكُمْ هَذِهِ وَذَكَرَ كُسُوفَ الشَّمْسِ
[Machine] From the Prophet ﷺ, it was narrated that he "performed two units (rak'atayn) of prayer during the solar and lunar eclipses, just like your prayers."
عَنِ النَّبِيِّ ﷺ أَنَّهُ «صَلَّى فِي كُسُوفِ الشَّمْسِ وَالْقَمَرِ رَكْعَتَيْنِ مِثْلَ صَلَاتِكُمْ»
The Messenger of Allah ﷺ prayed two rak'ahs like this prayer of yours, and he mentioned the eclipse of the sun. (Using translation from Nasāʾī 1492)
أَنَّ رَسُولَ اللهِ ﷺ «صَلَّى رَكْعَتَيْنِ مِثْلَ صَلَاتِكُمْ هَذِهِ وَذَكَرَ كُسُوفَ الشَّمْسِ»
The Messenger of Allah ﷺ prayed two rak'ahs like this prayer of yours, and he mentioned the eclipse of the sun. (Using translation from Nasāʾī 1492)
أَنَّ النَّبِيَّ ﷺ صَلَّى رَكْعَتَيْنِ مِثْلَ صَلَاتِكُمْ هَذِهِ فِي كُسُوفِ الشَّمْسِ وَالْقَمَرِ