The whole Bible doesn’t. The OT on its own does.
The NT doesn’t call for the abolition of slavery and urged converts under slavery to endure and seek freedom when the opportunities arise because it was never meant to upend economic and political systems. But also stated:
the sexually immoral, men who practise homosexuality, enslavers, liars, perjurers, and whatever else is contrary to sound doctrine, in accordance with the gospel of the glory of the blessed God with which I have been entrusted. -1 Tim 1:10-11
Who is speaking in first Timothy? Paul. Who told the Israelites that they could obtain, manslaughter, and blackmail slaves? God. If there is a question as to who Christians are supposed to follow, God or Paul, it has to be God.