2 Peter 2:21

For it were better for them not to have known the way of righteousness, than having known it to turn back from the holy commandment delivered to them.

Ezekiel 18:24

And when the righteous turneth from his righteousness and practiseth what is wrong, and doeth according to all the abominations that the wicked doeth, shall he live? None of his righteous acts which he hath done shall be remembered: in his unfaithfulness which he hath wrought, and in his sin which he hath sinned, in them shall he die.

Luke 12:47

But that bondman who knew his own lord's will, and had not prepared himself nor done his will, shall be beaten with many stripes;

Romans 7:12

So that the law indeed is holy, and the commandment holy, and just, and good.

Hebrews 6:4-6

For it is impossible to renew again to repentance those once enlightened, and who have tasted of the heavenly gift, and have been made partakers of the Holy Spirit,

Psalm 36:3-4

The words of his mouth are wickedness and deceit: he hath left off to be wise, to do good.

Psalm 125:5

But as for such as turn aside unto their crooked ways, Jehovah will lead them forth with the workers of iniquity. Peace be upon Israel!

Proverbs 12:28

In the path of righteousness is life, and in the pathway thereof there is no death.

Proverbs 16:31

The hoary head is a crown of glory, if it is found in the way of righteousness.

Ezekiel 3:20

And when a righteous man doth turn from his righteousness, and do what is wrong, and I lay a stumbling-block before him, he shall die; because thou hast not given him warning, he shall die in his sin, and his righteous acts which he hath done shall not be remembered; but his blood will I require at thy hand.

Ezekiel 23:13

And I saw that she was defiled: both took one way.

Zephaniah 1:6

and them that turn back from after Jehovah, and that do not seek Jehovah, nor inquire for him.

Matthew 11:23-24

And thou, Capernaum, who hast been raised up to heaven, shalt be brought down even to hades. For if the works of power which have taken place in thee, had taken place in Sodom, it had remained until this day.

Matthew 21:32

For John came to you in the way of righteousness, and ye believed him not; but the tax-gatherers and the harlots believed him; but ye when ye saw it repented not yourselves afterwards to believe him.

John 9:41

Jesus said to them, If ye were blind ye would not have sin; but now ye say, We see, your sin remains.

John 15:22

If I had not come and spoken to them, they had not had sin; but now they have no excuse for their sin.

1 Thessalonians 4:2

For ye know what charges we gave you through the Lord Jesus.

James 4:17

To him therefore who knows how to do good, and does it not, to him it is sin.

Treasury of Scripture Knowledge

Summary

For it had been better for them not to have known the way of righteousness, than, after they have known it, to turn from the holy commandment delivered unto them.

Bible References

It had

Matthew 11:23
And thou, Capernaum, who hast been raised up to heaven, shalt be brought down even to hades. For if the works of power which have taken place in thee, had taken place in Sodom, it had remained until this day.
Luke 12:47
But that bondman who knew his own lord's will, and had not prepared himself nor done his will, shall be beaten with many stripes;
John 9:41
Jesus said to them, If ye were blind ye would not have sin; but now ye say, We see, your sin remains.
John 15:22
If I had not come and spoken to them, they had not had sin; but now they have no excuse for their sin.

The way

Proverbs 12:28
In the path of righteousness is life, and in the pathway thereof there is no death.
Proverbs 16:31
The hoary head is a crown of glory, if it is found in the way of righteousness.
Matthew 21:32
For John came to you in the way of righteousness, and ye believed him not; but the tax-gatherers and the harlots believed him; but ye when ye saw it repented not yourselves afterwards to believe him.

To turn

Psalm 36:3
The words of his mouth are wickedness and deceit: he hath left off to be wise, to do good.
Psalm 125:5
But as for such as turn aside unto their crooked ways, Jehovah will lead them forth with the workers of iniquity. Peace be upon Israel!
Ezekiel 3:20
And when a righteous man doth turn from his righteousness, and do what is wrong, and I lay a stumbling-block before him, he shall die; because thou hast not given him warning, he shall die in his sin, and his righteous acts which he hath done shall not be remembered; but his blood will I require at thy hand.
Ezekiel 18:24
And when the righteous turneth from his righteousness and practiseth what is wrong, and doeth according to all the abominations that the wicked doeth, shall he live? None of his righteous acts which he hath done shall be remembered: in his unfaithfulness which he hath wrought, and in his sin which he hath sinned, in them shall he die.
Ezekiel 23:13
And I saw that she was defiled: both took one way.
Zephaniah 1:6
and them that turn back from after Jehovah, and that do not seek Jehovah, nor inquire for him.

Holy

Romans 7:12
So that the law indeed is holy, and the commandment holy, and just, and good.
1 Thessalonians 4:2
For ye know what charges we gave you through the Lord Jesus.

General references

Genesis 24:6
And Abraham said to him, Beware that thou bring not my son thither again.
Numbers 14:4
And they said one to another, Let us make a captain, and let us return to Egypt.
Deuteronomy 14:7
Only these ye shall not eat of those that chew the cud, or of those with hoofs cloven and split open: the camel, and the hare, and the rock-badger; for they chew the cud, but have not cloven hoofs they shall be unclean unto you;
Jeremiah 34:11
But afterwards they turned, and caused the bondmen and the bondmaids whom they had let go free, to return, and brought them into subjection for bondmen and for bondmaids.
Ezekiel 33:18
When the righteous turneth from his righteousness, and doeth what is wrong, then he shall die therein.
Matthew 7:27
and the rain came down, and the streams came, and the winds blew and beat upon that house, and it fell, and its fall was great.
Luke 14:30
saying, This man began to build and was not able to finish?
Luke 17:32
Remember the wife of Lot.
1 Timothy 5:15
For already some have turned aside after Satan.