181. – Then (v. 10b) he describes the punishment for their sin. For which cause, i.e., for which sin, I was provoked, i.e., outraged: not that there is anger in God except metaphorically, because He punishes as one in anger does. This punishment is frequently mentioned in Exodus and Numbers, for they were often prostrated. Hence in 1 Cor. (10:5) he speaks of the punishment of that sin. Or I was near, namely, by punishing them. For when the Lord helps the good and punishes the wicked, He is near them; but when He conceals men's sins because they repent, and dissembles the affliction of the just... in order that their merit may increase, then He seems to be far away: 'The clouds are his covert, and he does not consider our things, and he walks about the poles of heaven' (Jb. 22:14). Or, near, in regard to divine mercy, because the fact that he punishes them in this life is a sign of great mercy: 'Here burn, here cut, but spare me in eternity' (Augustine).
182. – Then (v. 10c) he describes the sin of provocation in detail. And this is clear from (v. 11). In regard to this he does two things: first, he mentions the sin; secondly, he adds the punishment (v. 11). In regard to the first he does two things: first, he mentions their persistence in evil; secondly, their departure from the good (v. 10d).
183. – He says, therefore, I was always near them, namely, by punishing them, and I said, namely, in the eternal plan: They always go astray in heart: 'You have always been rebellious against the Lord' (Dt. 31:27); 'If the Ethiopian can change his skin, or the leopard his spots: you also may do well, when you have learned evil' (Jer. 13:23). Thus, therefore, a person provokes God in one way, when he obstinately clings to evil; in another way when he scorns the good. Hence, he says, They have not known my ways, i.e. not with simple ignorance, but affected. The sin, therefore, is this: they have not known, i.e., they refused to know: 'We desire not the knowledge of your ways' (Jb. 21:14); 'He would not understand that he might do well' (Ps. 34:4). Or, they have not known, i.e., they have not approved, as the Apostle says: 'The Lord knows who are his' (2 Tim. 2:19).
Source: Commentary on Hebrews