The answer is the peace of God that passes understanding and keeps our hearts and minds through Christ Jesus, whether God says yes, no, or later.
Watch the Teaching: If God Already Knows Everything, Why Do We Pray?