Hadith.5246 - Amr ibn Shimr narrated from Jabir from Abu Jafar Imam Muhammad ibn Ali Al-Baqir عليه السلام regarding a man who kills his son or his slave.
Imam عليه السلام said: "He is not to be killed for that, but he should be severely beaten and exiled from his hometown."