It came to pass after many days, when Yahweh had given rest to Israel from their enemies all around and Joshua was old and well advanced in years, Bible see other translations

“well advanced in years.” The same phrase is used in Joshua 13:1. This is a type of inclusion, that the wars of Joshua were basically over and it was after those wars that Joshua divided up the land.

“when Yahweh had given rest to Israel.” The “rest” that Yahweh gave to Israel is a type of the full rest that Jesus will give to his people (cp. Heb. 4:8).

Commentary for: Joshua 23:1