10 “The Lord knows the thoughts of man, that they are but vain”. For although you know not the thoughts of God, that they are righteous; “He knows the thoughts of man, that they are but vain.” Even men have known the thoughts of God: but those to whom He has become a friend, it is to them He shows His counsel. Do not, brethren, despise yourselves: if you approach the Lord with faith, you hear the thoughts of God; these you are now learning, this is told you, and for this reason you are taught, why God spares the wicked in this life, that you may not murmur against God, who teaches man knowledge. “The Lord knows the thoughts of man, that they are but vain.” Abandon therefore the thoughts of man, which are vain: that you may take hold on the thoughts of God, which are wise. But who is he who takes hold on the thoughts of God? He who is placed in the firmament of heaven. We have already chanted that Psalm, and have expounded this expression therein.
Source: The Enarrations, or Expositions, on the Psalms (New Advent)