What are your thoughts on the power of fasting and prayer?

I have fasted and prayed to God on several occasions asking for things for myself and my family. I read somewhere that God only answers our prayers if what we ask for is according to his will. To me that means that many of my prayers will go unanswered. But the things I have prayed for are very important to me and I don’t want to lose hope. What are your thoughts on the power of fasting and prayer?

No prayer goes unanswered, however God in his infinite wisdom may not answer it the way we would like it to be answered