There is subjoined moreover thirdly the report of the question put forth through the ministry of the disciples, when it is added: And when the men had come to him. These two men were prefigured by the two spies sent beyond the Jordan, Joshua two. These are called men, because they manfully and faithfully fulfilled what had been commanded to them. Whence it is added: They said: John the Baptist sent us to you, so that we might inquire of you in his person. Which he notes, when he adds: Saying: Are you he who is to come, or do we look for another? Whence note that this question is proposed by th...e disciples in the person of John, to show that the disciples bear a doubting mind within themselves, but through John are directed to Christ.
Hence John did not pose the question on his own account, because he did not doubt in himself, but in his disciples. And this is what Chrysostom says: "Since he had learned by the Spirit, who had heard the voice of the Father, who had preached to the rest, who had borne witness, how could he doubt after so many miracles, through which he had become known to many? Had he perhaps become more timid on account of his imprisonment? Far be it, since the Lord says of him that he is not a reed shaken by the wind." Hence he did not doubt, but put forth the words of one doubting for the certainty of his disciples, just as it is said in John 11: "Where have you laid him?" and in John 6: "Whence shall we buy bread?" Gregory, however, holds that he doubted and inquired not about the first coming, of which he was certain, but about the descent into hell, in which he still had to precede Christ. Ambrose, for his part, holds that he doubted not from unbelief or slowness, like the disciples, "but from a certain piety," as is said in the Gloss.
Source: Commentary on Luke, Chapter 7