Exodus 21:6 New Century Version (NCV)

then the slave’s master must take him to God. The master is to take him to a door or doorframe and punch a hole through the slave’s ear using a sharp tool. Then the slave will serve that master all his life.

Exodus 21

Exodus 21:1-15