Passage
Whosoever he be that doth rebel against thy commandment, and will not hearken unto thy words in all that thou commandest him, he shall be put to death: only be strong and of a good courage.
Whosoever he be that doth rebel against thy commandment, and will not hearken unto thy words in all that thou commandest him, he shall be put to death: only be strong and of a good courage.
Joshua 1:16 And they answered Joshua, saying, All that thou commandest us we will do, and whithersoever thou sendest us, we will go.
Joshua 1:17 According as we hearkened unto Moses in all things, so will we hearken unto thee: only the LORD thy God be with thee, as he was with Moses.
Joshua 1:18 Whosoever he be that doth rebel against thy commandment, and will not hearken unto thy words in all that thou commandest him, he shall be put to death: only be strong and of a good courage.
The verse centers on "whosoever", "doth", "rebel", "against", "commandment", "hearken", "words", and "thou". It is saying that the verse draws attention to "whosoever" and "doth", so its meaning should be read from those terms before moving to application.
The prior verse says "According as we hearkened unto Moses in...", giving immediate footing for "whosoever" and "doth". In Joshua context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "whosoever" and "doth" with trust shaped by these words, not by a vague optimism outside the passage.