1 This Psalm is entitled, “The prayer of Moses the man of God,” through whom, His man, God gave the law to His people, through whom He freed them from the house of slavery, and led them forty years through the wilderness. Moses was therefore the Minister of the Old, and the Prophet of the New Testament. For “all these things,” says the Apostle, “happened unto them for ensamples: and they are written for our admonition, unto whom the ends of the world come.” In accordance therefore with this dispensation which was vouchsafed to Moses, this Psalm is to be examined, as it has received its title from his prayer
2. “Lord,” he says, “You have been our refuge from one generation to another”: either in every generation, or in two generations, the old and new: because, as I said, he was the Minister of the Testament that related to the old generation, and the Prophet of the Testament which appertained to the new. Jesus Himself, the Surety of that covenant, and the Bridegroom in the marriage which He entered into in that generation, says, “Had ye believed Moses, you would have believed Me: for he wrote of Me.” Now it is not to be believed that this Psalm was entirely the composition of that Moses, as it is not distinguished by any of those of his expressions which are used in his songs: but the name of the great servant of God is used for the sake of some intimation, which should direct the attention of the reader or listener. “Lord,” he says, “You have been our refuge from one generation to the other.”
Source: The Enarrations, or Expositions, on the Psalms (New Advent)