Colossians 3:23 says: And whatsoever ye do, do it heartily, as to the Lord, and not unto men;
(KJV).
The verse appears in Colossians 3, in a passage of practical exhortations to servants and masters. Read it in context at Colossians 3:23, or the full chapter at Colossians 3.