Here is one very strong take away from the story:
Frodo: I wish the ring had never come to me. I wish none of this had happened.
Gandalf: So do all who live to see such times, but that is not for them to decide. All we have to decide is what to do with the time that is given us. There are other forces at work in this world Frodo besides the will of evil. Bilbo was meant to find the ring, in which case you were also meant to have it. And that is an encouraging thought.
At hard times we tend to think the way Frodo thought – wish that nothing of this would had happened. Exactly at that rough time, we need to ponder a thought on what Gandalf says – There are other forces at work and you were meant to be here. So instead of thinking about why this is happening to you or coz of whom or anything else, what you have to focus on is that what to do with the (hard) time given to us. What you decide to do at that time will shape your future.