Exodus 21:6 New Living Translation (NLT)

If he does this, his master must present him before God. Then his master must take him to the door or doorpost and publicly pierce his ear with an awl. After that, the slave will serve his master for life.

Exodus 21

Exodus 21:1-15