but you shall cling to the LORD your God just as you have done to this day.
But cleave unto the Lord your God,.... To his word, worship, and ordinances; externally, by close adherence to them, and strict observation of them; and internally, by strong affection to him, hope, trust, and confidence in him, expectation of all good things from him, and constant application to him for help in all times of need, and a fixed dependence on him: as ye have...
BY PROMISES. (Jos 23:5-11) the Lord your God, he shall expel them from before you, as the Lord your God hath promised you, &c.--The actual possessions which God had given were a pledge of the complete fulfilment of His promise in giving them the parts of the country still unconquered.
Commenting on Joshua 23:5-11
Jos 23:6-8 Only let them be strong, i.e., be brave, to keep the law of Moses without fail (cf. Jos 1:7), to enter into no fellowship with these remaining nations (בּוא, to enter into close intimacy with a person; see Jos 23:12), and not to pay reverence to their gods in any way, but to adhere stedfastly to the Lord their God as they had hitherto done.
Commenting on Joshua 23:6-8