Find the life lesson.
It may be hard to find the silver lining, but it's almost always hiding somewhere. All of your experiences - both good and bad - contribute to your life's knowledge. Be thankful for what you know!
Reflect on the fact that you've gained wisdom and knowledge that may help you make better decisions and cope well in the future.