And he said unto them, Which of you shall have a friend, and shall go unto him at midnight, and say unto him, Friend, lend me three loaves;
And he from within shall answer and say, Trouble me not: the door is now shut, and my children are with me in bed; I cannot rise and give thee.
I say unto you, Though he will not rise and give him, because he is his friend, yet because of his importunity he will rise and give him as many as he needeth.
And I say unto you, Ask, and it shall be given you; seek, and ye shall find; knock, and it shall be opened unto you.
If ye, being evil, know how to give good gifts unto your children: how much more shall your heavenly Father give the Holy Spirit to them that ask him?
Because of his importunity he will rise and give him
The parable of the friend at midnight is somewhat amusing. A neighbor comes, asking for food in the dead of the night. At first the homeowner refuses, but relents after some persistence from the neighbor. It is very similar to the story of the persistent widow in Luke 18, who nags an unjust ruler until he gives her what she wants, just to finally be rid of her.
Now the point of these parables is not to suggest that we should pester God into giving us things that He does not want to. You cannot nag Him into solving your every problem like a genie. Rather, Jesus is saying that even if flawed friends and rulers can be convinced to grant a correct desire, then certainly God will be even more willing to do so.
Ask, and it shall be given you; seek, and ye shall find; knock, and it shall be opened
If ye know how to give good gifts: how much more shall your heavenly Father give the Holy Spirit to them that ask him?
But even if God is willing, Jesus suggests that we still need to ask. I have found that God has had many spiritual blessings that He was ready to give me, but He wouldn’t do so until I asked for them. This is clever. For one thing, it fosters a relationship between He and I. To ask Him for something, I must be praying to Him, and thus I have a strong self-interest to talk to Him regularly, the very thing that He wants me to do.
Additionally, if I decide to ask Him for something, I often have a moment of checking in with myself. For example, if I am going to ask for a greater portion of the Holy Spirit, even before I get the words out I might realize that I am actively living in a way that offends it. Indeed, I have gone to God intending to ask why He was not manifesting Himself more in my life, but along the way changed it to asking forgiveness for shutting Him out myself.