And he said to them: Which of you, etc. After the example and instruction, he here subjoins thirdly an incitement to prayer, by which we are invited to pray frequently and confidently. And this part has two sections: in the first is proposed an incitement to frequency of prayer; in the second, to confidence in praying, at the place: But which of you asks a father, etc. For these are the two things which most greatly empty the fruit of prayer of its effect, namely negligence and distrust.
Concerning the incitement to frequency, two things are intimated. The first is the inciting similitude; th...e second is the informative instruction, at the place: And I say to you: Ask, and it shall be given to you. As for the inciting similitude to frequency of prayer, three things are introduced. The first is the petitioning opportunity; the second is the refusing difficulty; the third is the importunity that obtains, so that from this it may be shown how great is the efficacy of importunate and continual prayer.
First, therefore, as regards the petitioning opportunity, he says: Which of you shall have a friend, etc. This is read interrogatively, but the Gloss holds that it should be read permissively: "Which, that is, someone, or if anyone." This, however, is said to show the preciousness of a true friend, according to that passage of Ecclesiasticus 6: "To a faithful friend there is no comparison, and no weighing of gold and silver is worthy against the goodness of his fidelity"; and again: "A faithful friend is the medicine of life and immortality, and he who fears the Lord shall find him." — To this friend, therefore, one has recourse with confidence, and so it is added: And he shall go to him at midnight, because, as is said in Proverbs 17, "he who is a friend loves at all times, and a brother is proven in distress."
And to such a one the need is set forth with confidence; for which reason it is added: And he shall say to him: Friend, lend me three loaves; and this he supports by the law of piety and charity, concerning which it is said in Isaiah 58: "Break your bread for the hungry"; and Ecclesiastes 11: "Cast your bread upon the passing waters."
Source: Commentary on Luke, Chapter 11