Now I bet there are some out there that have prayed for a dying loved one and have watched them still die. After thinking on that you also came to the conclusion that you prayed in faith and they still died. So did God then lie?Now I do not believe it was the will of God that death came into the world at least not for humans. The more deterministic camp says so but then they have God being the author of sin and evil and that is out because the Bible is pretty clear God is not the author of these things; He fights them.
Another option is that God knew evil would come and created the world anyway -- makes Him still the author of evil because once He creates the world evil and death are going to come. He still caused them because He could have stopped them by not creating the world in the first place or creating a world where the possibility of evil could not exist.
A third option is God only knew evil as a possibility. This is known as the open view or open theist position (the one I hold) where God sees evil as a possible but not inevitable end, because He has given Mankind a choice. Eat the tree --'death and evil'; don't eat the tree ' no death and no evil'. Both possibilities exist even in God mind and He is ready for either one. Mankind blows it so God begins to work against evil and redeem us from it and it's consequences. God is only responsible for creating the possibility of evil but did not actually create evil or suffering, they are simply the product of the disobedience of the human race.
Now in this evil world God still lets us talk to him and request things from him through prayer, but because of the evil unleashed things are still going to have multiple possibilities and because we still get carnal from time to time we can very much think we are right with God even though we are not. Evil and sin are always there to possibly screw things up.
Two great passages on prayer are both found in James: 4:1-6 and 5:13-18
James 4:1-6 actually offers up several conditions to answered prayer: 1) You have to ask, 2) You must not have wrong motives in particular that we are praying to consume the results on our own lusts with worldly gain of any type, and 3) You must pray in humility. That is in submission to God's desires. Now that is from God perspective, not ours.
James 5:13-18 was a favorite of many when I was in the Pentecostal church. Particularly, the part that says: "and the prayer offered in faith will restore the one who is sick...". There was always a heavy emphasis on the WILL part, but once again the conditions were often overlooked 1) calling for the elders of the church 2) anointing with oil but even here the meaning of this is subject to debate -- it could be anoint like in pour on the head or like in the case of the Good Samaritan where oil was used in a medicinal sense. 3) Do it in the name of the Lord -- humility again -- it is His authority not your own. 4) Offer the prayer in faith (Note: this is not the only condition to answered prayer as some would claim). 5)Based on verse 16 there is also confess your sins to one another and prayer for each other.
Given all these conditions one thing is for sure, you are not going to get an answer to prayer just by praying -- there is a lifestyle of holiness, community and faith that must be lived as well. There is also being the part of a church with a trust level high enough where confession of sin to each other is not only possible but brings about forgiveness. Not to mention that there are many other verses in the Bible that offer up conditions to answered prayer.
What this ultimately means is a prayer offers a possibility to God, one which He can choose to take or not to take depending on the spiritual condition of the person praying and their relationship to Him and the church. Praying does not force God's hand it simply gives Him one more thing to choose, but not a possibility that He must to choose.
In prayer, what I think is often forgotten is that God is the one in charge and we really can't tell Him what to do but we can petition Him. How he fulfils His Word is strictly up to Him.
Part 2 - The Lord's Prayer

