The context of slavery in the Jewish Bible
And he said to Abram, "You must surely know that your descendants shall be as aliens in a land not their own. And they shall serve them and they shall oppress them four hundred years." Genesis 15:13 LEB
Then you shall say to your son, We were Pharaoh's slaves in Egypt, and Jehovah brought us out of Egypt with a mighty hand. Deuteronomy 6:21 LITV
And he that steals a man and sells him, or if he is found in his hand, dying he shall die. Exodus 21:16 LITV