Ephesians 6:7

5 Slaves, obey your earthly masters with respect and fear and sincerity of heart, just as you would obey Christ.

6 And do this not only to please them while they are watching, but as servants of Christ, doing the will of God from your heart.

Serve with good will, as to the Lord and not to men,

8 because you know that the Lord will reward each one for whatever good he does, whether he is slave or free.

9 And masters, do the same for your slaves. Give up your use of threats, because you know that He who is both their Master and yours is in heaven, and there is no favoritism with Him.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
Serve with good will, as to the Lord and not to men,
KJV
With good will doing service, as to the Lord, and not to men:
WEB
with good will doing service as to the Lord and not to men,
ASV
with good will doing service, as unto the Lord, and not unto men:
DARBY
serving with good will as to the Lord, and not to men;
BLB
serving with good will, as to the Lord and not to men,
ÅB
og med villig hu tjener som for Herren og ikke som for mennesker,
OTB
Tjen med velvilje, som om dere tjente Herren og ikke mennesker,
B1930
og med villig hu tjener som for Herren og ikke som for mennesker,

Study notes (Tyndale)

Original text and word study

Cross references