If you transgress the covenant of the LORD your God, which He commanded you, and go and serve other gods and bow down to them, then the anger of the LORD will burn against you, and you will quickly perish from this good land He has given you.”
When ye have transgressed the covenant of the Lord your God, which he commanded you,.... The law, so called, and the several precepts of it, particularly those which relate to the faith and worship of the one only true God; see Exo 24:7; and have gone and served other gods, and have bowed down yourselves unto them; been guilty of idolatry, of having and worshipping...
When ye have transgressed the covenant of the LORD your God, which he commanded you, and have gone and served other gods, and bowed yourselves to them; then shall the anger of the LORD be kindled against you, and ye shall perish quickly from off the good land which he hath given unto you. (h) He shows that no evil can come to man, except he offend God by disobedience.
Ye shall perish quickly from off the good land - The following note from Mr. John Trapp is very judicious: "This judgment Joshua inculcates Jos 23:13, Jos 23:15, and here, because he knew it would be a very grievous thing to them to forego so goodly a land, so lately gotten, and so short a while enjoyed.