Joshua 23:5

5 The Lord your God will make them retreat from you, and he will drive them away as you advance. You shall have their land, as the Lord your God has promised you.

Joshua 23:5 Meaning and Commentary

Joshua 23:5

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.

Joshua 23:5 In-Context

3 You have seen everything that the Lord your God has done to all these nations because of you. The Lord your God has been fighting for you.
4 I have assigned as the possession of your tribes the land of the nations that are still left, as well as of all the nations that I have already conquered, from the Jordan River in the east to the Mediterranean Sea in the west
5 The Lord your God will make them retreat from you, and he will drive them away as you advance. You shall have their land, as the Lord your God has promised you.
6 So be careful to obey and do everything that is written in the book of the Law of Moses. Do not neglect any part of it,
7 and then you will not associate with these peoples left among you or speak the names of their gods or use those names in taking vows or worship those gods or bow down to them.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.