178. – Then (v. 9) he considers their specific sins. In regard to this he does two things: first, he mentions the sin of testing; secondly, the sin of rebellion (v. 10b). In regard to the first he does three things: first, he mentions the sin of testing; secondly, he shows its gravity (v. 9b); thirdly, the punishment (v. 10).
179. – He says, therefore, that they were guilty of the sin of testing Him in the desert, because your fathers tempted me there; and I speak in the Lord's person. Here it should be noted that temptation is an act of testing about something one does not know. Hence, it is... from unbelief that a person tempts God, yet it should be noted that sometimes one tempts God, not with the intention of trying and testing, although it is done after the manner of testing. For one who uses an object of his own, because it is useful, is not, properly speaking, testing it; for example, if someone fleeing were to ride on his own horse he would be testing it, but not with the intention of testing; but when his action is useless, then he is testing. Likewise, if someone were to expose himself to danger, compelled by necessity in the hope of divine help, he would not be tempting God; but if without necessity, he would be tempting God; hence the Lord says in Mt. (4:7): 'You shall not tempt the Lord, your God', because there was no need to cast Himself down. So, they tempted the Lord, because they doubted His power, complaining against Moses, as if the Lord could not give them food, even though they had witnessed His power in greater matters; therefore, they were guilty of the sin of unbelief, which is the greatest.
180. – Then he mentions the gravity of their sin when he says, they proved and saw my works. For the greater the benefits one receives from God and the greater the certitude he has of God's power, if he later doubts, he sins more gravely. But they had seen signs and wonders in the land of Egypt, the dividing of the sea, and other miracles, and yet they did not believe; hence, it is stated in Num. (14:22): 'Yet all the men that have seen my majesty and the signs that I have done in Egypt and in the wilderness, and have tempted me now ten times, have not obeyed my voice'. Hence he said, proved, i.e., wished to experience, and saw, i.e., experienced my works, i.e., effects which could not have taken place, unless they had been performed by one with infinite power. And all this not for one day, but for forty years, during which they remained in the desert, because they always had manna and the pillar of fire and the cloud. Or, they proved and saw me, because He never failed them.
Source: Commentary on Hebrews