but you shall cling to the LORD your God just as you have done to this day.
Cleave to the Lord means hold fast to His word, worship, and ordinances both outwardly through strict observation and inwardly through affection, trust, and constant dependence on Him for all aid. They had kept this covenant as a people since entering Canaan, free from the notorious idolatry that plagued them in the wilderness, though individual failings do not escape the charge.
AI summary
God pledges what He has already given as proof of what remains to be fulfilled. But His promise depends entirely on their keeping themselves clear of the Canaanites and their idolatry. Steadfast adherence to God's law will bring brilliant victories; any other path breaks the condition.
AI summary
Commenting on Joshua 23:5-11
Keep the law without wavering and refuse all fellowship with these nations. The four marks of worship, naming their gods, swearing by them, serving them, and bowing to invoke them, must be utterly rejected. Israel has kept the law under Joshua's rule; now they must persevere in that same attachment to the Lord.
AI summary
Commenting on Joshua 23:6-8