Joshua was part of the children of Israel from the time they left Egypt until Moses died. Then he became the leader. He heard all the complaints. He was there through all the scenes.
All their complaining was for naught (as is ours). The Lord took care of every need (as He does for us). Joshua 21:44-45 says, “…not a man of all their enemies stood against them; the Lord delivered all their enemies into their hand. Not a word failed of any good thing which the Lord had spoken to the house of Israel. All came to pass.”
Joshua 23 was his farewell address. It was a reminder of what would happen if they forgot the Lord. Verse 11 says, “Therefore take careful heed to yourselves, that you love the Lord your God.”
He told them that if they clung to the remnant of the nations, that the Lord would no longer drive them out. They would become snares and traps, scourges in their sides, and thorns in their eyes until they perished from the land.
Chapter 24 he reviewed their history and how the Lord had delivered them. Verse 15 Joshua declared, “…as for me and my house, we will serve the Lord.” Verse 16 says, “So the people answered and said: Far be it from us that we should forsake the Lord to serve other gods.”
We find out in Judges 1 that they did not drive out all the inhabitants. Joshua, the leaders, and all that came out of Egypt died. Judges 2:11 says, “Then the children of Israel did evil in the sight of the Lord, and served the Baals.”
1 Corinthians 10:1-11 is a recap as an example for us, written for our admonition. Verse 12 says, “Therefore let hm who thinks he stands take heed lest he fall.”