Passage
Then Joshua said to the people, “You will not be able to serve Yahweh, for He is a holy God. He is a jealous God; He will not forgive your transgression or your sins.
Then Joshua said to the people, “You will not be able to serve Yahweh, for He is a holy God. He is a jealous God; He will not forgive your transgression or your sins.
Joshua 24:17 for Yahweh our God is He who brought us and our fathers up out of the land of Egypt, from the house of slavery, and who did these great signs in our sight and kept us through all the way in which we went and among all the peoples through whose midst we passed.
Joshua 24:18 And Yahweh drove out from before us all the peoples, even the Amorites who lived in the land. We also will serve Yahweh, for He is our God.”
Joshua 24:19 Then Joshua said to the people, “You will not be able to serve Yahweh, for He is a holy God. He is a jealous God; He will not forgive your transgression or your sins.
Joshua 24:20 If you forsake Yahweh and serve foreign gods, then He will turn and do you harm and consume you after He has done good to you.”
Joshua 24:21 And the people said to Joshua, “No, but we will serve Yahweh.”
The verse centers on "joshua", "said", "people", "able", "serve", "yahweh", "holy", and "jealous". 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 18's "And Yahweh drove out from before us..." into verse 20's "If you forsake Yahweh and serve foreign...", 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.