And therefore it is added: And when he had drawn near, he asked him, saying: What do you want me to do for you? In which the generosity of the giver appears, because he offers himself to the good pleasure of the one asking. Whence the Gloss: "The Lord does not ask out of ignorance, but in order that he might be asked, so that he might arouse the mind to prayer," according to that saying in John 16: "If you ask the Father anything in my name, he will give it to you."
And since he who asks in the name of Jesus asks for things pertaining to salvation, therefore it adds: But he said: Lord, that I... may see. The Gloss: "The blind man does not ask for gold or anything temporal, but only for light. Let us therefore imitate him whom we have heard was healed in body and mind." Whence James 1: "If any of you lacks wisdom, let him ask it of God, and it shall be given to him." An example of this is found in Solomon in 3 Kings 3, where it is said that "the Lord appeared to Solomon and said: 'Ask what you will, that I may give it to you.'" But he said: "'You shall give your servant a docile heart,'" etc. "And the word was pleasing before the Lord, that he had asked for such a thing. And the Lord said: 'Because you have asked for wisdom, behold, I have given you a wise and understanding heart, to such a degree that none like you has been before you, nor shall any arise after you,'" etc.
Source: Commentary on Luke, Chapter 18