Be strong and courageous. Do not fear or be in dread of [the wicked], for it is YHWH your God who goes with you. He will not leave you or forsake you.
#deuteronomy 31:6 #vayelech

Like all of God's promises of material blessing, this promise was spoken to the nation of Israel under the presumption that they would live within God's laws. The loss at the battle of Ai because of the sin of Aachen proves the point.