Grandma dying of cancer, you pray that she be cured but dies instead, because 'that' is God's will.
You wasted time and energy praying since God's going to do 'his will' regardless whether you pray or not.