Following the first half of Psalm 37, is the obvious promise of preservation of God’s people. Also repeated, it says that the wicked will be cut off (in other words, NOT preserved). Their path leads to destruction.
After commanding that the righteous trust the Lord no matter what happens or how prosperous the wicked are NOW, the second half repeatedly assures the righteous that (and here’s the point of contact for us):
23 The steps of a man are established by the LORD, when he delights in his way;
24 though he fall, he shall not be cast headlong, for the LORD upholds his hand. – Psalm 37:23-24
There are pitfalls in the path but the Lord holds your hand. If the Lord holds your hand then you will not fall in the pit. This psalm doesn’t answer the questions: why the pitfalls? If you, Lord, have established my steps then why are there holes in the path?
What it does say is that no matter what befalls you, He will not forsake you but he is gracious to you. “They are preserved forever” (28).
It also warns that the wicked will pass away and be no more. Though… “I have seen a wicked, ruthless man, spreading himself like a green laurel tree. But he passed away, and behold, he was no more; though I sought him, he could not be found.” – Psalm 37:35-36
This tree has the appearance of luxurious prosperity but its end is eternally fatal. But that is not so for one who walks with the Lord.
39 The salvation of the righteous is from the LORD; he is their stronghold in the time of trouble.
40 The LORD helps them and delivers them; he delivers them from the wicked and saves them, because they take refuge in him. – Psalm 37:39-40
He’s got you! Trust and wait! He will help you.