Joshua 24:20

20 If you abandon the Lord and worship foreign gods, He will turn against [you], harm you, and completely destroy you, after He has been good to you."

Joshua 24:20 Meaning and Commentary

Joshua 24:20

If you forsake the Lord, and serve strange gods
Joshua knew the proneness of this people to idolatry, and therefore expresses his jealousy of them, that they would not be able to continue in the service of God, and would be apt to be carried away after idols; and therefore, to make them the more cautious and watchful, he represents to them the danger they were in, and what would befall them should they forsake the Lord they now promised to serve, and follow after other gods, which their fathers worshipped before they were called out of their estate of Heathenism, or which the Canaanites, or Egyptians worshipped, whose examples they were too ready to imitate:

then he will turn and do you hurt;
not that there is properly any change in God, either of his counsel or covenant, or of love and affection to his people, but of his providential dealings, or outward manner of acting towards men; or the sense is, he will again do you hurt, bring evils and calamities upon you again and again, frequently as you revolt from him, such as the sword, pestilence, famine, and captivity, which these people after experienced when they fell into idolatry:

and consume you;
by these his sore judgments:

after that he hath done you good;
by bringing you into such a good land, and bestowing so many good things upon you, natural, civil, and religious; and yet, notwithstanding, being disobedient to him, and especially in the instances mentioned, they are made to expect his resentment, and the effects of it.

Joshua 24:20 In-Context

18 The Lord drove out before us all the peoples, including the Amorites who lived in the land. We too will worship the Lord, because He is our God."
19 But Joshua told the people, "You will not be able to worship the Lord, because He is a holy God. He is a jealous God; He will not remove your transgressions and sins.
20 If you abandon the Lord and worship foreign gods, He will turn against [you], harm you, and completely destroy you, after He has been good to you."
21 "No!" the people answered Joshua. "We will worship the Lord."
22 Joshua then told the people, "You are witnesses against yourselves that you yourselves have chosen to worship the Lord." "We are witnesses," they said.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.