1 Kings 9:6

But if you or your sons indeed turn away from following Me, and do not keep My commandments and My statutes which I have set before you, and go and serve other gods and worship them,

2 Samuel 7:14-16

I will be a father to him and he will be a son to Me; when he commits iniquity, I will correct him with the rod of men and the strokes of the sons of men,

1 Chronicles 28:9

“As for you, my son Solomon, know the God of your father, and serve Him with a whole heart and a willing mind; for the Lord searches all hearts, and understands every intent of the thoughts. If you seek Him, He will let you find Him; but if you forsake Him, He will reject you forever.

Joshua 23:15-16

It shall come about that just as all the good words which the Lord your God spoke to you have come upon you, so the Lord will bring upon you all the threats, until He has destroyed you from off this good land which the Lord your God has given you.

1 Samuel 2:30

Therefore the Lord God of Israel declares, ‘I did indeed say that your house and the house of your father should walk before Me forever’; but now the Lord declares, ‘Far be it from Me—for those who honor Me I will honor, and those who despise Me will be lightly esteemed.

1 Kings 11:4-10

For when Solomon was old, his wives turned his heart away after other gods; and his heart was not wholly devoted to the Lord his God, as the heart of David his father had been.

2 Chronicles 7:19-22

But if you turn away and forsake My statutes and My commandments which I have set before you, and go and serve other gods and worship them,

2 Chronicles 15:2

and he went out to meet Asa and said to him, “Listen to me, Asa, and all Judah and Benjamin: the Lord is with you when you are with Him. And if you seek Him, He will let you find Him; but if you forsake Him, He will forsake you.

Psalm 89:30

“If his sons forsake My law
And do not walk in My judgments,

Psalm 89:32

Then I will punish their transgression with the rod
And their iniquity with stripes.

Treasury of Scripture Knowledge

Summary

But if ye shall at all turn from following me, ye or your children, and will not keep my commandments and my statutes which I have set before you, but go and serve other gods, and worship them:

Bible References

If ye

1 Samuel 2:30
Therefore the Lord God of Israel declares, ‘I did indeed say that your house and the house of your father should walk before Me forever’; but now the Lord declares, ‘Far be it from Me—for those who honor Me I will honor, and those who despise Me will be lightly esteemed.
2 Samuel 7:14
I will be a father to him and he will be a son to Me; when he commits iniquity, I will correct him with the rod of men and the strokes of the sons of men,
1 Chronicles 28:9
“As for you, my son Solomon, know the God of your father, and serve Him with a whole heart and a willing mind; for the Lord searches all hearts, and understands every intent of the thoughts. If you seek Him, He will let you find Him; but if you forsake Him, He will reject you forever.
2 Chronicles 7:19
But if you turn away and forsake My statutes and My commandments which I have set before you, and go and serve other gods and worship them,
2 Chronicles 15:2
and he went out to meet Asa and said to him, “Listen to me, Asa, and all Judah and Benjamin: the Lord is with you when you are with Him. And if you seek Him, He will let you find Him; but if you forsake Him, He will forsake you.

Go

1 Kings 11:4
For when Solomon was old, his wives turned his heart away after other gods; and his heart was not wholly devoted to the Lord his God, as the heart of David his father had been.
Joshua 23:15
It shall come about that just as all the good words which the Lord your God spoke to you have come upon you, so the Lord will bring upon you all the threats, until He has destroyed you from off this good land which the Lord your God has given you.