Haven't I commanded you? Be strong and of good courage; don't be afraid, neither be dismayed: for Yahweh your God is with you wherever you go.
Now the encouragement for Joshua as God promises His presence, His power. Then as God again tells him the conditions upon which he will experience that presence and power of God.