Deuteronomy 24:7

If a man has been caught soliciting his brother among the sons of Israel, and selling him in order to receive a price, then he shall be put to death. And so shall you take away the evil from your midst

Other versions

King James Version

If a man be found stealing any of his brethren of the children of Israel, and maketh merchandise of him, or selleth him; then that thief shall die; and thou shalt put evil away from among you.

English Standard Version

"If a man is found stealing one of his brothers, of the people of Israel, and if he treats him as a slave or sells him, then that thief shall die. So you shall purge the evil from your midst.

New International Version

If a man is caught kidnapping one of his brother Israelites and treats him as a slave or sells him, the kidnapper must die. You must purge the evil from among you.