Historical commentary by Matthew Henry. The wording and interpretations below belong to the original source.
Judicial Laws. ( b. c. 1491.)
The first verse is the general title of the laws contained in this and the two following chapters, some of them relating to the religious worship of God, but most of them relating to matters between man and man. Their government being purely a Theocracy, that which in other states is to be settled by human prudence was directed among them by a divine appointment, so that the constitution of their government was peculiarly adapted to make them happy. These laws are called judgments, because they are framed in infinite wisdom and equity, and because their magistrates were to give judgment according to the people. In the doubtful cases that had hitherto occurred, Moses had particularly enquired of God for them, as appeared, ch. xviii. 15 ; but now God gave him statutes in general by which to determine particular cases, which likewise he must apply to other like cases that might happen, which, falling under the same reason, fell under the same rule. He begins with the laws concerning servants, commanding mercy and moderation towards them. The Israelites had lately been servants themselves; and now that they had become, not only their own masters, but masters of servants, too, lest they should abuse their servants, as they themselves had been abused and ruled with rigour by the Egyptian task-masters, provision was made by these laws for the mild and gentle usage of servants. Note, If those who have had power over us have been injurious to us this will not in the least excuse us if we be in like manner injurious to those who are under our power, but will rather aggravate our crime, because, in that case, we may the more easily put our souls into their soul's stead. Here is,
I. A law concerning men-servants, sold, either by themselves or their parents, through poverty, or by the judges, for their crimes; even those of the latter sort (if Hebrews) were to continue in slavery but seven years at the most, in which time it was taken for granted that they would sufficiently have smarted for their folly or offence. At the seven years' end the servant should either go out free ( v. 2, 3 ), or his servitude should thenceforward be his choice, v. 5, 6 . If he had a wife given him by his master, and children, he might either leave them and go out free himself, or, if he had such a kindness for them that he would rather tarry with them in bondage than go out at liberty without them, he was to have his ear bored through to the doorpost and serve till the death of his master, or the year of jubilee.