We were ordered to free slaves at the time of lunar eclipses.
Sahih al-Bukhari Book 49, Hadith 4