In the "Garden of Emunah" it says not to ever give up praying to Hashem for whatever it is that you need in life. The bigger the request the more prayers needed. Moshe Rabbenu prayed 515 times so that he could enter Eretz Yisrael and Hashem told him to stop because if he prayed just one more time Hashem would have no choice but to let Moshe Rabbenu into Eretz Yisrael. However, Hashem did not want Moshe entering Eretz Yisrael, for reasons beyond our comprehension.
Essentially, Hashem knows what everyone of us needs. If you don’t receive what it is you prayed for, it doesn't mean Hashem ignored or didn't hear your prayers. It just means that you don't really need it now. When the time comes Hashem will give it to you with a full heart because He loves His children so much. Just remember stay strong and don't ever forget that Hashem ALWAYS does what's best for YOU! In order to work on our Emunah- Faith- in Hashem we must understand that anything that happens to us in life is from Hashem Himself.
Additionally, this should shed light onto our own lives and situations we may face. For example, we may encounter people who are extremely difficult for us to deal with; however, we must keep in mind that that person who upset us is just a tool Hashem sent our way in order for us to develop our middot- character traits- and only Hashem knows why we needed that person to evoke that emotion within us.
May all your prayers be answered at the right time. Amen!