James 4:17 in the King James Version
Therefore to him that knoweth to do good, and doeth it not, to him it is sin.
Context
16 But now you glory in your boasting. All such boasting is evil.
17 To him therefore who knows to do good and doesn’t do it, to him it is sin.