Joshua 24:20

If you forsake Yahweh and serve foreign gods, he will turn and bring disaster to you; he will destroy you after he has done good to you."

1 Chronicles 28:9

"And you, Solomon my son, know the God of your father and serve him with a whole heart and a willing mind, for Yahweh searches all hearts and understands every plan and [all] thoughts. If you seek him, he will be found by you, but if you abandon him, he will reject you forever.

Acts 7:42

But God turned away and gave them over to worship the host of heaven, just as it is written in the book of the prophets: 'You did not bring offerings and sacrifices to me [for] forty years in the wilderness, [did you], house of Israel?

2 Chronicles 15:2

And he went out before Asa and said to him, "Hear me, O Asa and all of Judah and Benjamin! Yahweh [is] with you while you are with him. And if you will seek him he will be found by you. But if you forsake him he will forsake you.

Ezra 8:22

For I was ashamed to ask the king for troops and horses to protect us from enemies on the way because we said to the king, "the hand of our God is favorable to all who seek him, but his strength and anger are against all who forsake them."

Isaiah 1:28

But [the] destruction [of] rebels and sinners [shall be] together, and those who forsake Yahweh will perish.

Isaiah 63:10

But they {were the ones who} rebelled, and they grieved {his Holy Spirit}, so he {became an enemy to them}; he himself fought against them.

Isaiah 65:11-12

But you {who forsake} Yahweh, forgetting {my holy mountain}, who set a table for Fortune, and who {pour out} a jug of mixed wine for Destiny,

Jeremiah 17:13

Yahweh, the hope of Israel, all [those who] forsake you will be put to shame, and [those who] turn aside from you in the earth will be recorded, for they have forsaken the fountain of living water, Yahweh.

Joshua 23:12-15

for if indeed you turn back and join these remaining nations {among you}, and you intermarry with them, {marrying their women and they yours},

Ezekiel 18:24

And {when the righteous turns} from his righteousness, so that he does injustice, and does all of the detestable things that the wicked do, then will he live [because of] all of his righteousness that he did? [Those things] will not be remembered because of his infidelity that he displayed, and because of his {sin that he committed}. Through them he shall die.

Hebrews 10:26-27

For [if] we keep on sinning deliberately after receiving the knowledge of the truth, there no longer remains a sacrifice for sins,

Hebrews 10:38

But my righteous one will live by faith, and if he shrinks back, my soul is not well pleased with him."

Treasury of Scripture Knowledge

Summary

If ye forsake the LORD, and serve strange gods, then he will turn and do you hurt, and consume you, after that he hath done you good.

General references

Bible References

He will turn

Joshua 23:12
for if indeed you turn back and join these remaining nations {among you}, and you intermarry with them, {marrying their women and they yours},
1 Chronicles 28:9
"And you, Solomon my son, know the God of your father and serve him with a whole heart and a willing mind, for Yahweh searches all hearts and understands every plan and [all] thoughts. If you seek him, he will be found by you, but if you abandon him, he will reject you forever.
2 Chronicles 15:2
And he went out before Asa and said to him, "Hear me, O Asa and all of Judah and Benjamin! Yahweh [is] with you while you are with him. And if you will seek him he will be found by you. But if you forsake him he will forsake you.
Ezra 8:22
For I was ashamed to ask the king for troops and horses to protect us from enemies on the way because we said to the king, "the hand of our God is favorable to all who seek him, but his strength and anger are against all who forsake them."
Isaiah 1:28
But [the] destruction [of] rebels and sinners [shall be] together, and those who forsake Yahweh will perish.
Isaiah 63:10
But they {were the ones who} rebelled, and they grieved {his Holy Spirit}, so he {became an enemy to them}; he himself fought against them.
Isaiah 65:11
But you {who forsake} Yahweh, forgetting {my holy mountain}, who set a table for Fortune, and who {pour out} a jug of mixed wine for Destiny,
Jeremiah 17:13
Yahweh, the hope of Israel, all [those who] forsake you will be put to shame, and [those who] turn aside from you in the earth will be recorded, for they have forsaken the fountain of living water, Yahweh.
Ezekiel 18:24
And {when the righteous turns} from his righteousness, so that he does injustice, and does all of the detestable things that the wicked do, then will he live [because of] all of his righteousness that he did? [Those things] will not be remembered because of his infidelity that he displayed, and because of his {sin that he committed}. Through them he shall die.
Acts 7:42
But God turned away and gave them over to worship the host of heaven, just as it is written in the book of the prophets: 'You did not bring offerings and sacrifices to me [for] forty years in the wilderness, [did you], house of Israel?
Hebrews 10:26
For [if] we keep on sinning deliberately after receiving the knowledge of the truth, there no longer remains a sacrifice for sins,

General references

Jeremiah 25:6
and you must not go after other gods to serve them, and to bow in worship to them, and you must not provoke me to anger with the work of your hands, then I will not do something bad to you.'