Sunan Abu Dawud #5168
General Behavior (Kitab Al-Adab) 43:396
Zadhan said:
I came to Ibn ‘Umar when he set his slave free. He took a stick or something else from the earth and said; for me there is no reward even equivalent to this. I heard the Messenger of Allah (May peace be upon him) say: If anyone slaps or beats his slave the atonement due from him is to set him free.