Found 2 precise matches across Summaries and Chronicles.
David seeks refuge in God during a time of intense distress, trusting Him to deliver him from his enemies and guide him with His wisdom.
...t your heart take courage, all you who wait for the Lord!” (Psalm 31:24)