In Psalm 31, David has taken refuge in Yahweh. He asked the Lord that he never be ashamed of his need to take refuge in Him. David cannot deliver himself, rescue himself, he isn’t strong, and he needs to be led and guided. Those are things the world is unwilling to admit.
Yet, even though David takes refuge in Yahweh, his enemies are allowed to set a net secretly for David AND catch him! Indeed, was the Lord not leading him? But David’s certainty is that Yahweh will pull him out of the net!
As the Psalm continues, though David takes refuge IN the Lord he is IN distress and pleads for grace. People flee from him in the street because his enemies have made him a reproach. He is slandered and forgotten. Terror is on every side!
Do not believe for one second that those who trust in the Lord are excluded from affliction and troubles of the soul. It’s a lie!
Yet, it is temporary! In your alarm you may feel, think and say, “I am cut off from before the Lord” but dear godly ones, He has heard your voice and cries.
Hear how the Psalm ends:
Love the LORD, all you his saints! The LORD preserves the faithful but abundantly repays the one who acts in pride. Be strong, and let your heart *take courage, all you who *wait for the LORD! – Psalm 31:23-24