We sow the seeds of whatever happens. In fact we create it. We may sow the seeds consciously or unconsciously, that's why sometimes we think that something has happened by accident. Accidents don’t happen, it is a cosmos, and it is not a chaos. Everything is absolutely based on a fundamental ultimate law, nothing ever goes wrong. We constantly create our world. There are people who are constantly afraid that something wrong is going to happen, and then it happens! They have made it happen. People who are afraid will always find situations in which fear grips them. People who love will always find situations where love blooms.
Because this existence goes on giving you that what you project. Life is our project. We are our life's creators. God has created man, but with freedom. It is up to us to choose what we like to happen to us in life and then we see that it starts happening. One thing is linked with another, and slowly we have taken a certain route; then all other alternatives are dropped.
When a child is born, all the alternatives are open; he is utterly free. He can be a musician, a politician, a professional, an Adolf Hitler, a Gautama Buddha; anything is possible. Later choices start coming and he starts moving in a certain direction. Then that direction remains his world. So always remember: whatsoever has happened, he has been the cause of it. Sometimes it hurts that one is himself the cause of all the misery; & he feels sad. But one should not lose hopes due to sadness and take practical steps and then again things would start happening the same way again.
And the second thing to remember is: For every hurt or happiness always feel thankful, because sometimes pain is needed for growth. So whatsoever happens, make it an opportunity to grow. Use that opportunity as a springboard for something higher. A friend dies, there is pain, there is anguish and misery, but use that opportunity. Meditate on death. May be the existence has reminded you of a very significant phenomenon that death is definite. Don't arrange your life without taking note of death and get ready: the friend is gone, & you will be gone one day. Life is a small affair; a seventy-year affair in which one-third goes in sleep, another one-third in earning bread & another one-third in other worldly stupidities. So find time to prepare for death. Mostly it comes without prior notice.
So once again we create our life and even the next life after death.