Sunan Abi Dawud, Book 3, Hadith 32 (Abu Dawud 1193)

Narrated Asma:

The Prophet (peace be upon him) used to command us to free slaves on the occasion of an eclipse