There is the classic story of the Chinese who had one horse and one son. One day his horse broke out of the corral and fled to the freedom of the hills. The neighbors came around that night and chattered, "Your horse got out? What bad luck!" "Why," the old Chinese said, "how do you know it's bad luck?" Sure enough, the next night the horse came back to his familiar corral for his usual feeding and watering, leading twelve wild stallions with him! The farmer's son saw the thirteen horses in the corral, slipped out, and locked the gate. Suddenly [the man] had thirteen horses instead of none. The neighbors heard the good news and came chattering to the farmer, "Oh, you have thirteen horses! What good luck!" And the old Chinese answered, "How do you know that's good luck?"
Some days later his strong young son was trying to break one of the wild stallions only to be thrown off and break a leg. The neighbors came back that night and passed another hasty judgment: "Your son broke his leg? What bad luck!" And the wise father answered again, "How do you know it's bad luck?" Sure enough, a few days later a Chinese warlord came through town and conscripted every able-bodied young man, taking them off to war, never to return again. But the young man was saved because of his broken leg. Only God knows what's good for us and what's bad for us.
"All things work together for good to those who love God." When we learn this lesson, then it becomes possible for us to pray the surrendering prayer of deepest faith, "Thy will be done."