Narrated Abu Huraira: The Prophet said,
“When it is a Friday, the angels stand at the gate of the mosque and keep on writing the names of the persons coming to the mosque in succession according to their arrivals. The example of the one who enters the mosque in the earliest hour is that of one offering a camel (in sacrifice). The one coming next is like one offering a cow and then a ram and then a chicken and then an egg respectively. When the Imam comes out (for Jumua prayer) they (i.e. angels) fold their papers and listen to the Khutba.”
To offer 2 rak’ats of prayer at the time of a solar eclipse is Sunnah. It will be performed just like 2 rak’ats of Nafl Salaah. The solar eclipse prayer should be offered in congregation provided the Imaam of the congregation is the Imaam of Jumma prayer. Azaan and iqamat should not be given for such a prayer, but to call the people to such a prayer, an announcement should be made in this manner; ‘Gather for Prayer’. It is Sunnah to recite lengthy surahs in such prayers and stay longer in Ruku and Sajdah. It is optional to recite aloud or quietly. Immediately after concluding the prayer, the Imaam should devote himself to Dua and the Dua should continue up to the end of the eclipse. But if in this condition the sun sets or the time of any prescribed prayer comes, the Dua should be concluded and the prayer of the time should be offered.
Note: If for some reason, the Imaam is not available, then people should perform Salaah individually.