Joshua
Joshua 23:16ESV·traditional attribution

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 be kindled against you, and you shall perish quickly from off the good land that he has given to you.”

John Gill Reformed Baptist @doctorgill

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...

Geneva Bible Notes Reformed @genevanotes

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.

Adam Clarke Methodist @methodicalclarke

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.