Not everyone has a good friend they can talk to anything about at any time. But we always have God. As David tells us in Psalm 62:8 –
“Trust in him at all times, O people;
pour out your heart before him;
God is a refuge for us. Selah”
When do we need a refuge? When we have troubles. He wants to hear from us at all times and strengthen and guide us. Martin Luther, commenting on the verse, wrote:
“Strength fades, courage fails; God remains firm. If you are lacking something, well, here is good advice: ‘Pour out your heart before him’ Voice your complaint freely, and do not conceal anything from him. Regardless of what it is, just throw it in a pile before him, as you open your heart completely to a good friend. He wants to hear it, and he wants to give you his aid and counsel. Do not be bashful before him. Out with everything.”
The word Selah at the end of the verse is mysterious, but many believe it is a signal to pause and reflect. What do you want to “throw in a pile before him” now?
 Quoted in McKim, Donald K. Everyday Prayer with the Reformers (2020). P. 37.