James 4:17
Anyone, then, who knows the right thing to do, yet fails to do it, is guilty of sin.
Berean Standard Bible
Therefore to him that knoweth to do good, and doeth it not, to him it is sin.
To him therefore who knows to do good and doesn’t do it, to him it is sin.