5 Yahweh your God will thrust them out from before you, and drive them from out of your sight. You shall possess their land, as Yahweh your God spoke to you.
*Minor differences ignored. Grouped by changes, with first version listed as example.
And drive them - out - and ye shall possess - The same Hebrew word ירש yarash is used here to signify to expel from an inheritance, and to succeed those thus expelled. Ye shall disinherit them from your sight, and ye shall inherit their land.
And the LORD your God, he shall expel (b) them from before you, and drive them from out of your sight; and ye shall possess their land, as the LORD your God hath promised unto you.
(b) Which yet remain and are not overcome, as in (Joshua 13:2).
And the Lord your God he shall expel them from before you,.... That is, such of them as yet remained among them:
and drive them from out of your sight; the same thing expressed by different words, for the confirmation of it:
and ye shall possess their land, as the Lord your God hath promised unto you; all which is to be understood on condition of their good behaviour towards the Lord, and obedience to his commands; by which tenure they held the possession of the land when put into it, and for their disobedience did not possess the whole.
BY PROMISES. (Joshua 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. 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 (Leviticus 26:7; Deuteronomy 28:7; Deuteronomy 32:30).
For the Lord would drive all these still remaining nations before the Israelites, and cut them off, and give the Israelites their land for a possession, as He had promised (Joshua 13:6; cf. Exodus 23:23.). הדף, as in Deuteronomy 6:19; Deuteronomy 9:4; and the form יהדּפם, with Chateph-kametz, on account of the weakness of the ה, as in Numbers 35:20. ירשׁתּם, as in Joshua 1:15.
*More commentary available at chapter level.