In my time with the Lord this week, I happened upon the following anonymous statement:
"Resentment comes from looking at others; Contentment comes from looking at God."
And immediately Psalm 73 came to mind.

The Psalmist was having a difficult time and he states it in verses 1 & 2, then goes on to gives us the details in verses 3-12. Let me share some verses here, but I encourage you to read the whole Psalm. It causes the Believer to check his/her own heart.
"Surely God is good to Israel, to those who are pure in heart.
But as for me, my feet had almost slipped; I had nearly lost my foothold." Vs. 1-2

Why?
"For I envied the arrogant when I saw the prosperity of the wicked." Vs. 3

He then goes on to tell of things concerning the wicked.
"For there are no pangs in their death,
But their strength is firm.
They are not in trouble as other men,
Nor are they plagued like other men.
Therefore pride serves as their necklace; Violence covers them like a garment.
Their eyes bulge with abundance;
They have more than heart could wish.
They scoff and speak wickedly concerning oppression; They speak loftily.
They set their mouth against the heavens, And their tongue walks through the earth." Vs. 4-9 "Behold, these are the ungodly, who are always at ease; They increase in riches." Vs. 12

Then he says of his lot in comparison to the wicked, "Surely I have cleansed my heart in vain, And washed my hands in innocence.
For all day long I have been plagued,
And chastened every morning." Vs. 13-14

Remember in Vs. 2 where he said that he had almost slipped?
I believe this is where he caught himself.  He sought God and began to understand, therefore did not harm others.
"If I had said, 'I will speak thus,'
Behold, I would have been untrue to the generation of Your children.
When I thought how to understand this,
It was too painful for me--
Until I went into the sanctuary of God;
Then I understood their end." Vs. 15-17

As for guarding his tongue, it is a reminder of Psalm 141:3 where David cries out to the Lord (and I must admit, a prayer for myself as well), "Set a guard, O Lord, over my mouth; Keep watch over the door of my lips."

How grateful we are that God intervenes! When we turn to Him with a contrite heart, the Holy Spirit leads and guides us into all truth! Jesus tells us in John 16:13, "However, when He, the Sprit of truth, has come, He will guide you into all truth."

Verses 18-20 tells us that he came to understand the precarious position and destruction of the wicked.

In verses 21-24 The Psalmist confesses with a repentant heart, and he knows God's grace of forgiveness, "Thus my heart was grieved, And I was vexed in my mind.
I was so foolish and ignorant;
I was like a beast before You.
Nevertheless I am continually with You;
You hold me by my right hand.
And afterward receive me to glory."

The Psalmist exalts the Lord God and affirms his commitment to Him, Vs. 25-26, "Whom have I in heaven but You?
And there is none upon earth that I desire besides You.
My flesh and my heart fail;
But God is the strength of my heart and my portion forever."

He ends with the truth that he has come to know experientially, "For indeed, those who are far from You shall perish; You have destroyed all those who desert You for harlotry.
But it is good for me to draw near to God; I have put my trust in the Lord God, That I may declare all Your works." Vs. 27-28

His conclusion is Vs. 1
"Truly God is good to Israel, to such as are pure in heart."

This Psalm is a wonderful reminder for every Believer to not look on the things of the earth, but know that our gracious God; Father, Son and Holy Spirit is in control of all things and He knows His plan for each of us! And that plan is for our good and His glory! Hallelujah! Amen