The end of the sefer describes Yehoshua’s gathering of Bnei Yisrael in order to speak with them before he dies. Perek 23 contains the first speech, in which Yehoshua reiterates the importance of keeping the Torah and clinging to God.

 

Courtesy of www.tanachstudy.com