539. – Then when he says, for you had compassion on the prisoners [them that were in bands], he explains what he had said. First of all in regard to the second, namely, how they had compassion, for among the Jews many were in bands; as it says in Acts (8:3) that Paul made havoc in the Church, committing men and women to prison: 'I was in prison and you visited me' (Mt. 25:36). In regard to the first he says, and the plundering of your property for helping those in bands, you took with joy: 'Count it all joy, when you shall fall into diverse temptations' (Jas. 1:2); 'The Apostles went from the ...presence of the council, rejoicing that they were accounted worthy to suffer reproach for the name of Jesus' (Ac. 5:41).
540. – But with what joy? Should tribulations be loved? It certainly seems not, because Augustine says: 'You are commanded to bear them, not love them.' I answer that they are not loved for their own sake, but for something else: and that is the way they loved them; hence, he continues, since you knew that you had a better and abiding possession, namely, other riches more important, which are increased by the removal of those riches, by which they are called better. For temporal riches are hollow, because they consist in things that are beneath men; but spiritual riches consist in God, namely, in the enjoyment of God: 'Riches of salvation, wisdom and love; the fear of the Lord is his treasure' (Is. 33:6). Furthermore, they last, because the others fail of themselves and can be taken away; but these cannot: 'Lay not up to yourselves treasures on earth, where the rust and moth consume, and where thieves break in and steal. But lay up to yourselves treasures in heaven' (Mt. 6:19).
Source: Commentary on Hebrews