Commit thy way unto the LORD; trust also in him; and he shall bring it to pass. And he shall bring forth thy righteousness as the light, and thy judgment as the noonday. — Psalms 37:5-6
The word commit (galal) in Hebrew means to roll. To roll also means to trust. God wants us to line up every thought and our every way unto him. Yes, it might look like the wicked is getting away with everything and they are prospering. But if we keep ourselves in line with the word of God, he said he will bring it to pass. We are to do good, and not allow our flesh to act out. The word tells us to stop being angry and turn from our rage. We cannot fret (worry) about how wrong things are in our world, but we are to wait patiently on God and he will take care of it. How do we stop worrying, by delighting ourselves in him. He lets us know when we do this by aligning our will to his, he will give us the desires of our heart.