It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Whoever punishes his slave for an offence he did not commit, its expiation is to set him free."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13237