And since by thinking these things they were blaspheming, therefore they are detected and reproved, when it is added: But when Jesus perceived their thoughts, as God, because, Sirach twenty-three, "the eyes of the Lord are far brighter than the sun, surveying all the ways of men and the depth of the abyss and beholding the hearts of men." Nor is this a wonder, because He is the Word of God, of whom in Hebrews four: "The word of God is living and effective and more penetrating than any two-edged sword, and a discerner of the thoughts and intentions of the heart."
Nor does He only detect and di...scern, but He also reproves: Answering, He said to them: Why do you think evil in your hearts? as if to say that of Isaiah one: "Take away the evil of your thoughts from before my eyes." For He Himself saw and reproved; Jeremiah four: "How long shall harmful thoughts dwell within you"? For such are perverse thoughts, of which in Wisdom one: "For perverse thoughts separate from God." Therefore Isaiah twenty-nine: "Woe to you who are deep of heart, so as to hide your counsel from the Lord"; and it continues: "This thought of yours is perverse, as if the clay should think against the potter, and the work should say to its maker: You did not make me; and the thing formed should say to its fashioner: You do not understand." But certainly it can be said of them that of Wisdom two: "These things they thought and erred, for their malice blinded them."
Source: Commentary on Luke, Chapter 5