Sahih al-Bukhari, Book 49, Hadith 3 (Bukhari 2419)

Narrated Asma' bint Abu Bakr:

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