DBT
Contributor
''If you buy a Hebrew slave, he is to serve for only six years. Set him free in the seventh year, and he will owe you nothing for his freedom. If he was single when he became your slave and then married afterward, only he will go free in the seventh year. But if he was married before he became a slave, then his wife will be freed with him. If his master gave him a wife while he was a slave, and they had sons or daughters, then the man will be free in the seventh year, but his wife and children will still belong to his master. But the slave may plainly declare, ‘I love my master, my wife, and my children. I would rather not go free.’ If he does this, his master must present him before God. Then his master must take him to the door and publicly pierce his ear with an awl. After that, the slave will belong to his master forever.'' (Exodus 21:2-6 NLT)
This doesn't condone slavery. It says what the rules are IF you practice slavery.
It doesn't condemn it or condone it. It accepts it as an established fact of the world at that time. And then lays down these rules for those who practice it, mostly imposing some limits or conditions on the slave owner.
It condones slavery. A ruling Power or a powerful governing body does not set rules and conditions for a practice that it deems morally abhorant, without a murmur of protest. The quoted verse and many like it implicitly support the practice of slavery.