175. – Therefore, if that is the benefit, here is the admonition, harden not your hearts. For a hard heart smacks of evil. That is hard which does not yield, but resists and does not receive an impression. Therefore, man's heart is hard, when it does not yield to God's command nor easily receive divine impressions: 'A hard heart shall fear evil at the last' (Sir. 3:27); 'But according to your hardness and impenitent heart, you treasure up to yourself wrath against the day of wrath' (Rom. 2:5). But this hardening is caused by two things: first, by God not offering grace: 'He has mercy on whom h...e will, and whom he wills, he hardens' (Rom. 9:18); secondly, by the sinner hardening himself by not obeying God and by not opening his heart to grace: 'And they made their heart as the adamant stone, lest they should hear the law and the words which the Lord of hosts sent in his spirit by the hand of the former prophets' (Zech 7:12). Therefore, harden not your hearts i.e., do not close your hearts to the Holy Spirit: 'You always resist the Holy Spirit' (Ac. 7:51).
176. – Then he presents the resemblance when he says, as in the rebellion. This is a resemblance based on a past event: for the faithful are instructed about the things to be done in the New Testament from the things that occurred in the past, as Rom. (15:4) testifies: 'What things soever were written, were written for our learning.' In regard to this he does two things: first, he gives an example in general by citing their guilt; secondly, he gives specific examples (v. 9).
177. – If we are to follow the Apostle's explanation, we must use the senses which fit the explanation. Thus we read that among others there were two sins committed by the Jews which were severely punished: one was the disobedience of the spies mentioned in Num. (13 & 14), for which the Lord wished to wipe out the people. Hence, He swore that no one but Caleb and Joshua would enter the promised land. He calls this a rebellion, because, although they had offended God in other ways, this sin was particularly bitter; for just as bitter fruit, not being ripe, is not suitable for eating, so then God's anger was inflexible: 'How often did they provoke him in the desert, and move him to wrath in the place without water' (Ps. 77:40)? 'You have provoked him who made you' (Bar. 4:7). The other sin was that of tempting God. For they frequently tempted Him, sometimes for water, sometimes for meat, and sometimes for bread, so that they tempted Him ten times: 'They have tempted me now ten times' (Num. 14:22); 'Behold, these ten times you confound me' (Jb. 19:2). Hence he says, in the day of testing. But someone might suppose the signs of rebellion and testing are the same, and that the Apostle should say: 'Harden not your hearts as in the rebellion, which occurred in the day of testing.' But this does not agree with the Apostle's explanation. Therefore, we should say, Harden not your hearts as in the rebellion, and again, as in the day of testing, so that there are two sins; hence, Ps. 77 (v. 41) says: 'And they turned back and tempted God; and grieved the Holy One of Israel.'
Source: Commentary on Hebrews