Now it came to pass, as they walked etc. After the instruction of the Apostles according to the norm of governing with respect to humility of soul and equanimity of zeal, here in the third place He instructs them with respect to perspicacity of judgment; and this through the example of Jesus Christ. Moreover, perspicacity of judgment is manifested in this part in three ways: first, in the repulsion of the double-minded: second, in the calling of the simple, at: But He said to another etc.; third, in the reproving of the wavering, at: And another said: I will follow You, Lord etc.
Concerning t...he repulsion of the double-minded, two things are introduced: the first is the simulation of simplicity, the second is the detection of duplicity.
First, therefore, regarding the pretense of simplicity, he says: And it came to pass, as they walked on the way, namely, the disciples walking with the Lord on the way of perfection, as is said of Noah in Genesis 6: "Noah was a just and perfect man and walked with God"; and similarly the Lord to Abraham, Genesis 17: "Walk before me, and be perfect." Concerning which way, Isaiah 30: "You shall hear the word of your teacher. This is the good way: walk in it."
And because on this way the wicked frequently wish to join themselves to the good through pretense, therefore it is added: A certain man said to Jesus: I will follow you wherever you go, in which he showed that he had the will to follow perfectly, though he had something else in his heart, just as Simon Magus, of whom it is said in Acts 8 that "when men and women were being baptized, then Simon himself also believed and was baptized," yet with a wicked and double heart, as is evident from what follows. Whence Jerome: "This man wished to follow Jesus with the same intention by which Simon Magus desired to have the power of working miracles, so that he might gain riches from the miracles." But against this, Sirach 1: "Do not approach her with a double heart, and be not a hypocrite in the sight of men." Such are those who promise great things and do little, against whom Sirach 4: "Be not hasty in your tongue, and useless and remiss in your works."
Source: Commentary on Luke, Chapter 9