With that said, let's get to what I really wanted to point out in these passages. We clearly see a correlation, a dependency, between kingdom of God success and obedience. An obedient child of God will find success. Doing the will of God leads to success and prosperity. Living for ourselves and entertaining sin leads to defeat and destruction.
Check it out:
7 Be strong and very courageous. Be careful to obey all the law my servant Moses gave you; do not turn from it to the right or to the left, that you may be successful wherever you go. 8 Do not let this Book of the Law depart from your mouth; meditate on it day and night, so that you may be careful to do everything written in it. Then you will be prosperous and successful. - Joshua 1:7-8