9 “Or what man is there among you who, when his son asks for a loaf, will give him a stone?
10 “Or if he asks for a fish, he will not give him a snake, will he?
11 “If you then, being evil, know how to give good gifts to your children, how much more will your Father who is in heaven give what is good to those who ask Him!” Matthew 7:7-11.
Here are some quotes (not contiguous) from Calvin on his Commentary on these verses.
“Ask, and it shall be given you. It is an exhortation to prayer: and as in this exercise of religion, which ought to be our first concern, we are so careless and sluggish, Christ presses the same thing upon us under three forms of expression. There is no superfluity of language, when he says, Ask, seek, knock: but lest the simple doctrine should be unimpressive, he perseveres in order to rouse us from our inactivity.
He uses the metaphor seek, because we think, that those things which our wants and necessities require are far distant from us — and knock, because our carnal senses imagine, that those things which are not immediately at hand are shut up.
Though he gives all things freely to us, yet, in order to exercise our faith, he commands us to pray, that he may grant to our requests those blessings which flow from his undeserved goodness.
Is there any man among you? It is a comparison from the less to the greater. First, our Lord contrasts the malice of men with the boundless goodness of God. Self-love (φιλαυτία) renders us malicious: for every man is too much devoted to himself, and neglects and disregards others. But this vice yields to the stronger feelings of a father’s love, so that men forget themselves, and give to their children with overflowing liberality. Whence comes this, but because God, of whom the whole family in heaven and earth is named, (Ephesians 3:15,) drops into their hearts a portion of his goodness? But if the little drops produce such an amount of beneficence, what ought we to expect from the inexhaustible ocean? Would God, who thus opens the hearts of men, shut his own? Let us also remember that passage of Isaiah, “Though a mother forget her children,” (Isaiah 49:15,) yet the Lord will be like himself, and will always show himself to be a Father.
Your Father will give good things. This is expressly mentioned by Christ, that believers may not give way to foolish and improper desires in prayer. We know how great influence, in this respect, is exerted by the excesses and presumption of our flesh.
Christ therefore enjoins us to submit our desires to the will of God, that he may give us nothing more than he knows to be advantageous. We must not think that he takes no notice of us, when he does not answer our wishes: for he has a right to distinguish what we actually need. All our affections being blind, the rule of prayer must be sought from the word of God: for we are not competent judges of so weighty a matter. He who desires to approach God with the conviction that he will be heard, must learn to restrain his heart from asking any thing that is not agreeable to his will. “Ye ask, and receive not, because ye ask amiss, that ye may consume it upon your lusts.” (James 4:3)
Here is the link to the full commentary on these verses –