1 Peter 2:18

18 Slaves, in reverent fear of God submit yourselves to your masters, not only to those who are good and considerate, but also to those who are harsh.

Read 1 Peter 2:18 Using Other Translations

Servants, be subject to your masters with all fear; not only to the good and gentle, but also to the froward.
Servants, be subject to your masters with all respect, not only to the good and gentle but also to the unjust.
You who are slaves must submit to your masters with all respect. Do what they tell you—not only if they are kind and reasonable, but even if they are cruel.