Passage
And Joshua wrote these words in the book of the law of God, and took a great stone, and set it up there under an oak, that was by the sanctuary of the LORD.
And Joshua wrote these words in the book of the law of God, and took a great stone, and set it up there under an oak, that was by the sanctuary of the LORD.
Joshua 24:24 And the people said unto Joshua, The LORD our God will we serve, and his voice will we obey.
Joshua 24:25 So Joshua made a covenant with the people that day, and set them a statute and an ordinance in Shechem.
Joshua 24:26 And Joshua wrote these words in the book of the law of God, and took a great stone, and set it up there under an oak, that was by the sanctuary of the LORD.
Joshua 24:27 And Joshua said unto all the people, Behold, this stone shall be a witness unto us; for it hath heard all the words of the LORD which he spake unto us: it shall be therefore a witness unto you, lest ye deny your God.
Joshua 24:28 So Joshua let the people depart, every man unto his inheritance.
The verse centers on "joshua", "wrote", "words", "book", "took", "great", "stone", and "under". It is saying that the verse draws attention to "joshua" and "wrote", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 25's "So Joshua made a covenant with the..." into verse 27's "And Joshua said unto all the people...", so "joshua" and "wrote" belong inside that flow. In Joshua context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "joshua" and "wrote" with trust shaped by these words, not by a vague optimism outside the passage.