Passage
And Joshua said unto the people, Ye cannot serve Jehovah; for he is a holy God; he is a jealous God; he will not forgive your transgression nor your sins.
And Joshua said unto the people, Ye cannot serve Jehovah; for he is a holy God; he is a jealous God; he will not forgive your transgression nor your sins.
Joshua 24:17 for Jehovah our God, he it is that brought us and our fathers up out of the land of Egypt, from the house of bondage, and that did those great signs in our sight, and preserved us in all the way wherein we went, and among all the peoples through the midst of whom we passed;
Joshua 24:18 and Jehovah drove out from before us all the peoples, even the Amorites that dwelt in the land: therefore we also will serve Jehovah; for he is our God.
Joshua 24:19 And Joshua said unto the people, Ye cannot serve Jehovah; for he is a holy God; he is a jealous God; he will not forgive your transgression nor your sins.
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.
The verse centers on "joshua", "said", "people", "serve", "jehovah", "holy", "jealous", and "forgive". 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 Jehovah drove out from before us..." into verse 20's "If ye forsake Jehovah 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.