2 “I will confess unto You, O Lord, with my whole heart”. He does not, with a whole heart, confess unto God, who doubts of His Providence in any particular: but he who sees already the hidden things of the wisdom of God, how great is His invisible reward, who says, “We rejoice in tribulations;” and how all torments, which are inflicted on the body, are either for the exercising of those that are converted to God, or for warning that they be converted, or for just preparation of the obdurate unto their last damnation: and so now all things are referred to the governance of Divine Providence, which fools think done as it were by chance and at random, and without any Divine ordering.
“I will tell all Your marvels.” He tells all God's marvels, who sees them performed not only openly on the body, but invisibly indeed too in the soul, but far more sublimely and excellently. For men earthly, and led wholly by the eye, marvel more that the dead Lazarus rose again in the body, than that Paul the persecutor rose again in soul. But since the visible miracle calls the soul to the light, but the invisible enlightens the soul that comes when called, he tells all God's marvels, who, by believing the visible, passes on to the understanding of the invisible.
Source: The Enarrations, or Expositions, on the Psalms (New Advent)