The Male Servant
2“If you buy a Hebrew servant, he shall serve six years and in the seventh he shall go out free without paying anything. 3If he comes in by himself, he shall go out by himself. If he is married, then his wife shall go out with him. 4If his master gives him a wife and she bears him sons or daughters, the wife and her children shall be her master’s, and he shall go out by himself. 5But if the servant shall plainly say, ‘I love my master, my wife, and my children. I will not go out free;’ 6then his master shall bring him to God, and shall bring him to the door or to the doorpost, and his master shall bore his ear through with an awl, and he shall serve him for ever. Exodus 21:2-6
God provided for servitude in Moses' Covenant, in six-year periods. In the seventh year, the male servant was to go free as he came in, not paying anything.
If he was unmarried when he was bought, he would leave unmarried; but if married before servitude, then his wife would leave with him.
However, if he married while under his master's lordship his wife and any children borne by her would remain with his master. So we see the boundaries of servitude under this Covenant. It is like another life has begun—it is no longer the servant's life while under the master's care—he does not own himself or what he produces.
But a method of keeping what he has produced is provided: if he desires to stay with his master, and his wife and children gotten while with the master, he can do so. His ear must be pierced with an awl into the doorpost of his master's house, as a sign of his life-long servitude. He shall never be free again, but all that he has produced and loves shall remain with him.
The Spiritual
One can see the spiritual truth behind this ordinance. We sell ourselves into slavery to sin and its master, Satan, when we sin (John 8:34). We leave the free world and enter servitude. Anything that we produce while in sin's house becomes the property of its master, Satan. Therefore, when we choose to leave, all that we have produced remains with him—we leave it all behind for something greater: Jesus.
The Lord tells us that anyone who leaves houses, mothers, fathers, wives, children, etc., for His sake and the sake of the Gospel, will receive 100-fold more in this life, as well as ageless life in the world to come (Mark 10:28-30). This is the blessing of the New Covenant. Though we lose what we made in our life with Satan, we gain so much the more as we enter the house of Yahweh. But if we choose to stay in Satan's house, though we keep all we have gained, we die with him—apart from Yahweh. It is all for nought (Matthew 16:25-26)!
Those who leave Satan's house and his servitude, and enter the House of Yahweh, will also produce much (John 15:8). They, if they choose to stay in God's House, will keep all they produce. They will serve Him forever. All that they do will remain with them as they continue to serve Yahweh. Without His Son, into Whom they have incorporated, they can do nothing (John 15:4-5)—but with Him they can do all things (Mark 10:27)!
What's more, Jesus promises to free those already in God's House! Those already under the Old Covenant had the ability to become free through the New Covenant of Christ.
35A bondservant doesn’t live in the house forever. A son remains forever. 36If therefore the Son makes you free, you will be free indeed. John 8:35-36
Israel could come out from under the old and into the new, which was better. God has provided for those who were in covenant with Him through Moses, but as servants, as well as for those sold into servitude to sin. No matter who we are, Jew or Gentile, Christ has made provision for us to become free.