Jesus wrote the entire Bible. He is God. I suggest the book of Philemon (a very short book) as a primer.
Ephesians 6:5 and Colossians 3:22 - call on slaves to be obedient to their masters. “Bondservants, obey in everything those who are your earthly masters, not by way of eye-service, as people-pleasers, but with sincerity of heart, fearing the Lord.
Proof slavery was condoned in the Bible.