Without being mindful, it is easy to think about spiritual things through the lens of our culture’s mindset and worldview. In Jonah’s day, it was culturally and societally supported to hate certain people groups, such as the Assyrians, and to assume God hated them too.
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.