Jesus: You have heard it said,
“if you ask, you might or might not get it, depending on God’s will.”
However, I say to you, “If you ask you will receive, if seek you will find, and if you knock the door will be open.”
Jesus: You have heard it said,
“If you pray God will answer with a ‘yes,’ ‘maybe’ or a ‘no.’”
However, I say to you, “for everyone who asks receives, and the one who seeks finds, and to the one who knocks it will be opened.”
Jesus: You heard it said,
“If you keep asking, and God has not given it to you, God has answered your prayer with a no.”
However, I say to you, “Suppose you went to a friend’s house at midnight, wanting to borrow three loaves of bread. You say to him, 6 ‘A friend of mine has just arrived for a visit, and I have nothing for him to eat.’ 7 And suppose he calls out from his bedroom, ‘Don’t bother me. The door is locked for the night, and my family and I are all in bed. I can’t help you.’ 8 But I tell you this—though he won’t do it for friendship’s sake, if you keep knocking long enough, he will get up and give you whatever you need because of your shameless persistence.” 
Jesus: you have heard it said,
“Even if God answers your prayer, because God is looking out for you, He will often give you something different, but better.”
However, I say to you, “what man is there among you, if his son will ask him for bread, will give him a stone? Or also if he will ask for a fish, will give him a snake? Therefore if you, although you* are evil, know how to give good gifts to your children, how much more will your Father who is in heaven give good things to those who ask him?”
“Ask and it will be given to you; seek and you will find; knock and it will be opened for you. For everyone who asks receives,
and the one who seeks finds, and to the one who knocks it will be opened. Or what man is there among you, if his son will ask him for bread, will give him a stone?
Or also if he will ask for a fish, will give him a snake? Therefore if you, although you* are evil, know how to give good gifts to your children, how much more will your Father who is in heaven give good things to those who ask him? Matthew 7:7–11 (LEB)
Since it is God’s, and not man’s definition that a “good” God gives you the very thing you ask for, anyone who teaches otherwise is spouting a doctrine of demons. Some bark up like mad dogs that, “what if you ask for something bad?” So what? What does this logically have to do with what I am saying? This is not a relevant point, because James says if you ask God for evil things (“God help me murder this person”), then you are God’s “enemy,” and so prayer is the least of your concerns. Since I am addressing Christians or those who at least claim to be so, and not sworn enemies of God, I will ignore logically non-relevant points.
Jesus says, if you ask in faith you will get what you ask for. Jesus even says this in more than one way, in case we missed it. What Jesus is doing here with prayer, is the same He is doing throughout the “Sermon on the Mount.” You have heard it said “do not murder your brother, but I say to you, do not do it, even in your heart.” When Jesus teaches on judging people, His point presupposes that you are able to judge your brother, and to do it without hypocrisy. You do this by removing the wood from your own eye first. Some morons say, “you cannot judge without hypocrisy or bias”; yet, Jesus contradicts this in His sermon. He teaches the true ethical standard God demands for judging, and He expects His disciples to do it. It is good news to see in the new covenant, God promising to give us ethical power, “I will write my laws in your hearts.”
In this context of Jesus repeatedly correcting the low opinion of people’s thinking on God’s commands and standards, Jesus talks about “prayer and faith.” Thus, when we see Jesus saying, “if you ask God in faith, you get the very thing you ask for,” then we can infer the presupposition behind it, at least in the broad sense; and so, Jesus’ teaching is in opposition to the people’s low opinion of what they think prayer and faith should accomplish. The Jews had a perverted and low view of prayer. From the Mount, Jesus corrects their error and describes the true ethical standard that God commands about faith. Whatever the low valuation of prayer the Jews had, it was not to the standard of, “if you ask in faith, you will get what you ask for.” Jesus is expecting and demanding, (just like He demands us to not even lust in our hearts after another woman), to pray and get what we pray for. Jesus in essence says, “You have heard it said, if its God’s will, then you might get what you pray for. But I say to you, if you ask in faith, you will get the very thing you ask for, because God is the good Father.” This is the type of Being we are dealing with. You must deal with Him and not someone else.
Do you know this Jesus?
 Luke 7:5-8