The Prophet (ﷺ) ordered us to free slaves at the time of solar eclipses.

Sahih al-Bukhari Book 49, Hadith 3