Passage
And Joshua said unto the people, Ye are witnesses against yourselves that ye have chosen you Jehovah, to serve him. And they said, We are witnesses.
And Joshua said unto the people, Ye are witnesses against yourselves that ye have chosen you Jehovah, to serve him. And they said, We are witnesses.
Joshua 24:20 If ye forsake Jehovah, and serve foreign gods, then he will turn and do you evil, and consume you, after that he hath done you good.
Joshua 24:21 And the people said unto Joshua, Nay; but we will serve Jehovah.
Joshua 24:22 And Joshua said unto the people, Ye are witnesses against yourselves that ye have chosen you Jehovah, to serve him. And they said, We are witnesses.
Joshua 24:23 Now therefore put away, [said he], the foreign gods which are among you, and incline your heart unto Jehovah, the God of Israel.
Joshua 24:24 And the people said unto Joshua, Jehovah our God will we serve, and unto his voice will we hearken.
The verse centers on "joshua", "said", "people", "witnesses", "against", "yourselves", "chosen", and "jehovah". It is saying that the verse draws attention to "joshua" and "said", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 21's "And the people said unto Joshua Nay..." into verse 23's "Now therefore put away said he the...", so "joshua" and "said" 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 "said" with trust shaped by these words, not by a vague optimism outside the passage.