Exodus 21:20

20 "If a slave owner takes a stick and beats his slave, whether male or female, and the slave dies on the spot, the owner is to be punished.

Exodus 21:20 Meaning and Commentary

Exodus 21:20

And if a man smite his servant or his maid with a rod
A Canaanitish servant or maid, as the Targum of Jonathan, and so Jarchi; and that only with a rod for the correction of them, and not with a sword or any such destroying weapon, which would seem as though he intended to kill, yet nevertheless:

and he die under his hand;
immediately, while he is smiting or beating him or her, on the same day, as the above Targum interprets it:

he shall be surely punished;
or condemned to the punishment of being slain with the sword, as the said Targum and Jarchi explain it: this law was made to deter masters from using severity and cruelty towards their servants.

Exodus 21:20 In-Context

18 "If there is a fight and someone hits someone else with a stone or with his fist, but does not kill him, he is not to be punished. If the one who was hit has to stay in bed, but later is able to get up and walk outside with the help of a cane, the one who hit him is to pay for his lost time and take care of him until he gets well.
20 "If a slave owner takes a stick and beats his slave, whether male or female, and the slave dies on the spot, the owner is to be punished.
21 But if the slave does not die for a day or two, the master is not to be punished. The loss of his property is punishment enough.
22 "If some men are fighting and hurt a pregnant woman so that she loses her child, but she is not injured in any other way, the one who hurt her is to be fined whatever amount the woman's husband demands, subject to the approval of the judges.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.