James 4:17

So, the person who knows the good [he ought] to be doing, but is not doing it, is sinning.

John 9:41

Jesus said to them, "If you were [really] blind [i.e., unable to see spiritually], you would not be guilty of sin. But since you claim, 'We can see [fine],' you remain guilty of sin."

Luke 12:47-48

And that slave who knew what his master wanted, but did not make preparations [i.e., for his master's return], or do what his master wanted, will be whipped with many lashes.

John 13:17

If you know these things, you will be happy if you practice them.

John 15:22

They would not be guilty of sinning if I had not come and spoken to them. But now [that I have], they have no excuse for their sin.

Romans 1:20-21

For since the creation of the world, God's invisible qualities of eternal power and divine nature have been clearly seen, [capable of] being perceived through the things that He has made. So, these people have no excuse [i.e., for not believing in Him].

Romans 1:32

These people know that God's decrees require that those who practice such things deserve to die [i.e., either spiritual or temporal punishment], yet they not only do the same things [themselves], but even approve of other people who practice them.

Romans 2:17-23

But if you call yourselves "Jews," and [claim to] rely on the law of Moses, and brag about [belonging to] God;

Romans 7:13

Was this [commandment] then, which was intended for my good, [actually] responsible for my [spiritual] death? Certainly not! But so that sin could be seen as [truly] sinful, it produced [spiritual] death in me through something that was good [i.e., the commandment against sinning]. This was so that, by means of the commandment [against sinning], sin could be seen as extremely sinful.

2 Peter 2:21

It would have been better for them if they had not known the right way [to God] than, after knowing it, to turn back from the sacred message that had been presented to them.

Treasury of Scripture Knowledge

Summary

Therefore to him that knoweth to do good, and doeth it not, to him it is sin.

Bible References

General references

Luke 12:47
And that slave who knew what his master wanted, but did not make preparations [i.e., for his master's return], or do what his master wanted, will be whipped with many lashes.
John 9:41
Jesus said to them, "If you were [really] blind [i.e., unable to see spiritually], you would not be guilty of sin. But since you claim, 'We can see [fine],' you remain guilty of sin."
John 13:17
If you know these things, you will be happy if you practice them.
John 15:22
They would not be guilty of sinning if I had not come and spoken to them. But now [that I have], they have no excuse for their sin.
Romans 1:20
For since the creation of the world, God's invisible qualities of eternal power and divine nature have been clearly seen, [capable of] being perceived through the things that He has made. So, these people have no excuse [i.e., for not believing in Him].
Romans 2:17
But if you call yourselves "Jews," and [claim to] rely on the law of Moses, and brag about [belonging to] God;
Romans 7:13
Was this [commandment] then, which was intended for my good, [actually] responsible for my [spiritual] death? Certainly not! But so that sin could be seen as [truly] sinful, it produced [spiritual] death in me through something that was good [i.e., the commandment against sinning]. This was so that, by means of the commandment [against sinning], sin could be seen as extremely sinful.