12 Nevertheless, let him point out to us, why the body of Christ, the holy Church, the people of adoption, suffered such indignities. “The Lord,” he says, “hast chastened and corrected me, but He has not given me over unto death”. Let not then the boastful wicked imagine that anything has been permitted to their power: they would not have that power, were it not given them from above. Oft does the father of a family command his sons to be corrected by the most worthless slaves; though he designs the heritage for the former, fetters for the latter. What is that heritage? Is it of gold, or silver, or jewels, or farms, or pleasant estates? Consider how we enter into it: and learn what it is.
13. “Open me,” he says, “the gates of righteousness”. Behold, we have heard of the gates. What is within? “That I may,” he says, “go into them, and give thanks unto the Lord.” This is the confession of praise full of wonder, “even unto the house of God, in the voice of joy and confession of praise, among such as keep holiday:” this is the everlasting bliss of the righteous, whereby they are blessed who dwell in the Lord's house, praising Him for evermore.
Source: The Enarrations, or Expositions, on the Psalms (New Advent)