God as our refuge is a frequent image in the Psalms.
The Lord is a refuge for the oppressed, a stronghold in times of trouble. Ps 9:9
The Lord is my rock, my fortress and my deliverer, my God is my rock, in whom I take refuge. He is my shield and the horns of my salvation, my stronghold. Ps 18:2
Both high and low among men find refuge in the shadow of your wings. Ps 36:7
God is our refuge and strength, an ever-present help in trouble. Ps 46:1
I will say of the Lord, he is my refuge and my fortress, my God in whom I trust. Ps 91:2
Since God is our refuge, he can make a way or be the way when we see no way through or no way out. Though everyone else abandons us, he will not. Of that we can be confident.