The Prophet (peace be upon him) used to command us to free slaves on the occasion of an eclipse
Sunan Abi Dawud Book 3, Hadith 32