The pasuk says in Yeshayah, וידעת כי אני ה' לא יבושו קווי - You will know that I am Hashem, those who have hope in Me will not be ashamed. Which means there's a certain way that Hashem deals with people who have real hope in Him. They may not deserve to get what they're hoping for, but because of their hope alone, Hashem ensures they will not be ashamed. There's a reward for hope. The Ramchal wrote a whole kuntras explaining how great hope in Hashem is. A tefila made with hope is infinitely greater than one without hope. A person has to feel that Hashem wants to give him what he's asking for. The pasuk says that Hashem is משביע לכל חי רצון . Hashem doesn't only think about us day and night and do what's best for us every second of the day, He also wants to do our will, so long as it's not something that will be bad for us. The Midrash Rabbah in Shemot , regarding the mann , brings the pasuk ומשביע לכל חי רצון , and explains that Hashem doesn't just provide a person's needs, He gives each person his wants. When Hashem sent the mann down in the desert for 40 years, He gave the people the pleasure of tasting anything they wanted in the mann . He could have just made it so that the mann had a good taste and they would have been satisfied. But instead He said, “I want to give you what you want. Tell me what you want to taste in the mann , and it will taste exactly like that.” It is true that sometimes what we want is not the best thing for us. But even there, by Hashem not giving it to us, He is doing our will. Because if we would know why it wasn't good for us, we wouldn't want it. However, sometimes the reason something is not good for a person, is because he doesn't deserve it based on his mitzvot and averot . In those instances, the fact that the person has hope alone, will give him the zechut to then deserve what he is asking for. Therefore, before a person asks for anything, he should think, Hashem wants to give it to me, He can give it to me. And if I believe in His ability to give it to me, with complete emunah, that may be the zechut I need to get it . Rabbi David Goldwasser told a story about a woman who was not so religious, who came to him asking him to pray for her, because she had to undergo certain tests that were potentially very serious. The Rabbi assured her he would pray for her every day. She thanked him, and before she left, she mentioned something else. After she got divorced, her son was living with her, and then one day out of nowhere, when he was just 19 years old, he left her a letter saying he was sorry, but she was never going to see him again. Just like that, he left home, and it has now been 10 years, and no one has heard a thing about him. She tried so many ways to track him down, including hiring private detectives, but never found a trace of him. She asked the Rabbi if there was any hope of her ever finding her son. The Rabbi told her there is always hope, Hashem can do anything, and she needed to start praying to Him. He gave her a tefila to say in English, and encouraged her to feel the greatness of Hashem, and to know that He could easily help her. She took the paper with the prayer on it, and told the Rabbi she was going to read it every day from the bottom of her heart. A month went by, and nothing happened. She then went on a three-day ecology seminar, and on the last night, she was sitting in a large room with glass walls, and all of a sudden, someone walked by outside that seemed to look like her son. At first, she thought she was hallucinating, but then she got up and ran to see who that person was. She ran until she finally caught up with him. Amazingly, it was her son. When she looked at him, he said, “Ma, what are you doing here?” She said, “I've been waiting every day to see your face again.” They sat and spoke for a while, and they exchanged numbers. He promised to be in touch with her. The woman went for her testing in the coming weeks, and they determined a surgery was required. When she went to the surgery, she went in alone. But when she woke up from the surgery, she was overcome with joy, because the first person she saw was her son, standing by her bed. Baruch Hashem, the surgery was successful. There is always hope in every situation.