Judges 2:7

2:7 The people worshiped the Lord throughout Joshua’s lifetime and as long as the elderly men who outlived him remained alive. These men had witnessed all the great things the Lord had done for Israel.

Judges 2:22

2:22 Joshua left those nations to test Israel. I wanted to see whether or not the people would carefully walk in the path marked out by the Lord, as their ancestors were careful to do.”