Psalm 62 may be set at a time of chaos for Gods people or whether there is some specific time in mind it is hard to know. The psalm does not tell us.
What it does tell us in that the psalmist finds great comfort in God. It is repeated a number of times in the Psalm:
1 My soul finds rest in God alone;
my salvation comes from him.
2 He alone is my rock and my salvation;
he is my fortress, I will never be shaken.
5 Find rest, O my soul, in God alone;
my hope comes from him.
6 He alone is my rock and my salvation;
he is my fortress, I will not be shaken.
7 My salvation and my honor depend on God [h] ;
he is my mighty rock, my refuge.
8 Trust in him at all times, O people;
pour out your hearts to him,
for God is our refuge.
In the midst of hardship they find confidence in God.
As I was thinking about this I thought of some other songs that remind us of the confidence we can have in God, who in the midst of the trials of our lives guarantees our salvation:
On Christ the solid rock I stand, all other ground is sinking sand
I have shelter in the storm… Jesus I will hide in you.
What songs come to mind for you?