Fiqh-us-Sunnah Volume 2, Supererogatory Prayer, Fiqh 2.036A.
Section : It is preferred to make the takbir, supplications, to give charity, and ask Allah for forgiveness during the eclipse.
Al-Bukhari and Muslim record from ‘Aishah that the Messenger of Allah said: “The sun and the moon are two signs from among Allah’s signs and there is no eclipse due to the life or death of anyone. If you see that [an eclipse] supplicate to Allah, extol His greatness, give charity and pray.” They also record from Abu Musa that there was a solar eclipse and the Prophet said: “If you see something of this nature, rush to the remembrance of Allah, supplicating Him and asking His forgiveness.”