This is a superscription that tells about the psalm. Some scholars say that this is part of the scripture and some say that it is not. (See "What are Superscriptions in Psalms" in [Introduction to Psalms](../front/intro.md).)
God protecting his people is spoken of as if God were a refuge or shelter. Alternate translation: "Lord, you have been like a shelter for us" (See: [[rc://en/ta/man/jit/figs-metaphor]])