Moses was describing a basic principle of life, life goes well for us when living God's way, by God's law. Even for Job. In the middle of his story, life was awful. At the end of the book God not only restores Job's fortunes, they're even better than when the book starts out. Job successfully endured the ordeal God permitted in his life, and he was blessed.