This book of the law shall not depart out of your mouth, but you shall meditate thereon day and night, that you may observe to do according to all that is written therein: for then you shall make your way prosperous, and then you shall have good success.
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.