There was once a man who was completely ignorant of anything to do with farming and how food is produced. So he went to a farmer to see for himself what is done.
The farmer showed him a beautiful open field which the man admired. Then the farmer took a plow and dug furrows all over the field. The man was shocked and exclaimed "what are you doing? You're ruining it!"
"Patience," said the farmer.
Then he brought a sack of grain and explained that this is what we eat. The man was again shocked when the farmer threw all the grain onto the ground and covered it with earth.
"What are you doing? You're ruining it," he shouted.
"Patience," said the farmer.
After a few months he brought the man back to show him a field full of wheat. The man was impressed. "Now I understand. You put some grain in the ground in order to get this."
Then the farmer took a scythe and cut down all the grain in the field and then beat it on the ground.
"What are you doing? You're ruining it!"
"Patience," said the farmer.
Then he took a winnowing fork and threw it all into the air until he had a huge pile of grain.
The man was impressed. "Now I understand. You cut down all the standing grain to get this."
Then the farmer took all the grain and ground it up into what looked like dust.
"What are you doing? You're ruining it!"
"Patience," said the farmer.
He took some of the flour and mixed it with water sugar and yeast and waited for it to rise.
The man was impressed. "Now I understand. You ground up all the grain to get this."
Then the farmer lit a fire in the oven and put the dough inside it.
"What are you doing? You're ruining it!"
"Patience," said the farmer.
Then the farmer took out of the oven a beautiful, fresh, delicious loaf of bread.
"This is what I wanted from the beginning," said the farmer.
Hashem is the farmer and we are the ignorant man. We can't understand why things happen. Every time we think we've finally figured it all out and we understand why it has to be a certain way, things change and it looks like it's being ruined. But in the end, when Hashem finally shows us the 'bread' He wanted all along, we'll understand why everything that happened had to be that way.
Until then, we just have to trust that the Farmer knows what He's doing.
(This can be found in the back of R'Elchonon Wasserman's sefer Ikvesah Demeshicah)