Exodus 21:4-7 Common English Bible (CEB)

4. If his master gave him a wife and she bore him sons or daughters, the wife and her children will belong to her master. He will leave single.

5. However, if the slave clearly states, "I love my master, my wife, and my children, and I don’t want to go free,"

6. then his master will bring him before God. He will bring him to the door or the doorpost. There his master will pierce his ear with a pointed tool, and he will serve him as his slave for life.

7. When a man sells his daughter as a slave, she shouldn’t be set free in the same way as male slaves are set free.

Exodus 21