598. Second, the Lord foretells their justice, saying to the angels: open the gates, of heaven or of virtue, closed by sins; or, literally: it is not necessary for you to close the gates because of the unfaithful, for they are all just: this is the gate of the Lord, the just shall enter into it (Ps 117[118]:20).
610. Note also on the words, open the gates (Isa 26:2), that we ought to open the gates through meditation,
first, on the misery of hell, below: I shall go to the gates of hell (Isa 38:10);
second, on the just life: let her works praise her in the gates (Prov 31:31);
third, on the ...glory of heaven: he has strengthened the bolts of your gates (Ps 147:13).
Open the gates, and let the righteous nation enter, keeping the truth. The old error has gone; you will keep peace: peace, because we have hoped in you. You have hoped in the Lord for everlasting ages. LXX: Open the gates, let the people enter which keeps righteousness, and keeps the truth, laying hold of the truth, and keeping peace: peace, because they have hoped in you, O Lord, for ever. This whole song, which the saints are to sing in the land of confession and praise, suddenly changes persons, and is woven as if by question and answer. The people of God had said: The city of our strength,... the Savior, a wall and an outer wall will be set in it. The Lord answered, or rather commanded, not those who had said this, but the angels who presided over the gates of the Lord's city, that they should open the gates, and let the righteous nation enter through them, keeping the truth, or, as is said in the Hebrew, EMMUNIM (אמונים), which in our language is rendered faiths, in the plural number, not the singular. Which are the gates that are opened by the angels, so that there may enter, not the people of the Jews, which has been cast off, but the righteous nation, which from faith has received the name of the faithful? Surely those of which the holy man speaks: Open to me the gates of righteousness; having entered them, I will confess to the Lord (Ps 117 [118]:19). But no one will be able to enter these gates except one who has been freed from the gates of death, as the Psalmist said: You who lift me up from the gates of death, that I may declare all your praises in the gates of the daughter of Zion (Ps 9:15). For when we have been snatched from the gates of death, then we shall be able to sing all the praises of the Lord in the gates of the daughter of Zion. And as I consider the gates of death to be sins, of which it is said to Peter: The gates of hell shall not prevail against you (Matt 16:18), so I consider the gates of righteousness to be all the works of the virtues; and he who has entered them will find one gate, of which it is said: This is the gate of the Lord, the righteous shall enter by it (Ps 117 [118]:20). And as through many pearls one comes to the one pearl, so through many ways and gates we come to him who says that he is the way and the gate, through which we enter to the Father.
After the words of the people and the answer of the Lord, and again the voice of the people, the Prophet speaks to the believers: You have hoped, or hope in the Lord, for everlasting ages, and the rest that follows. According to the Seventy, he enters the gates of the Lord who keeps righteousness in good works, and keeps or embraces the truth in the truth of faith, so that through good works and faith he may come to the peace which surpasses all understanding, and may merit to receive that peace; because he has believed in God, who is the eternal rewarder of good works (Phil 4). Hence also in ...another place it is written: You have desired wisdom: keep the commandments, and the Lord will grant it to you (Sir 1:33).