Jami` at-Tirmidhi #1950
Chapters on Righteousness And Maintaining Good Relations With Relatives 27:56
Abu Sa'eed Al-Khudri narrated that the Messenger of Allah said :
"When one of you beats his servant then he (should) remember Allah and, withhold your hands."