23:1-10 Joshua was old and dying, let them observe what he said now. He put them in mind of the great things God had done for them in his days. He exhorted them to be very courageous. Keep with care, do with diligence, and regard with sincerity what is written. Also, very cautiously to endeavour that the heathen idolatry may be forgotten, so that it may never be revived. It is sad that among Christians the names of the heathen gods are so commonly used, and made so familiar as they are. Joshua exhorts them to be very constant. There might be many things amiss among them, but they had not forsaken the Lord their God; the way to make people better, is to make the best of them.
Jos 23:5-11. By Promises.
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. But the accomplishment of the divine promise depended on their inviolable fidelity to God's law—on their keeping resolutely aloof from all familiar intercourse and intimate connections with the Canaanites, or in any way partaking of their idolatrous sins. In the event of their continuing in steadfast adherence to the cause of God, as happily distinguished the nation at that time, His blessing would secure them a course of brilliant and easy victories (Le 26:7; De 28:7; 32:30).