For the Lord watches over the way of the righteous,
but the way of the wicked will perish.
Keep in mind as you read this, that when a psalmist says, "the way" he is referring to a manner of life. I know that it doesn't seem like this all of the time, but God's ways are higher than our ways and his thoughts are higher than our thoughts.
When Joseph was thrown into slavery, rejected by his brothers.... When he was accused of wrong doing by his boss... When he ended up on death row in Egypt... I am sure that things might have seemed bleak. But later in his life, he was able to look to his brothers and say, "You intended to harm me, but God intended it for good to accompolish what is now being done, the saving of many lives." (Genesis 50:20)
Following God's way does not mean a road without trial. But it is a road that is worth traveling. It is full of meaning and promise.