It comes from different sources, whether that be our own prideful disobedience (my default setting), or the natural results of life. However it may come, it is how we respond to adversity that determines whether it brings us closer, or further away from God. I love the words of Walt Disney on the topic: "All the adversity I've had in my life, all my troubles and obstacles, have strengthened me... You may not realize it when it happens, but a kick in the teeth may be the best thing in the world for you."
Here are a few words from members of the Church of Jesus Christ of Latter-day Saints on their views of adversity.
Elder Wahl (LDS missionary): "Adversity helps me to be humble. It helps me remember that it's the Lord on whom I must rely."
Dani (recent convert): "I think what has helped me most to get through the hard times is knowing that what I live through is nothing compared to what Jesus did for us. He suffered so that we can live with God one day."
Dana (lifelong member): "I'm grateful for adversity because it drops me to my knees. I've learned to love my Father more in my struggles, to trust him more in my adversities, to feel his love more in my challenges, than I ever do during the good times. In fact, it keeps my heart open and humble and full of love and charity. Sometimes when things are good, I'll skip along my way with a little "Fa la la la la" in my step and just kinda oblivious to life. Adversity slows me down and shakes me a little as if to say, "Focus up, girl!" The best part is that I've learned to feel every great and wonderful and desirable feeling even in the midst of great difficulty."
One response to adversity should be constant-we must trust in Heavenly Father and Jesus Christ. No matter what our struggle may be, God will help us through it. The Prophet Alma taught, "Whosoever shall put their trust in God shall be supported in their trials, and their troubles, and their afflictions, and shall be lifted up at the last day" (Alma 36:3)
I know that scripture is true because I have experienced it for myself. You can do it. You can make it through whatever adversity you now face. You will be able to look back on this time in your life and smile. The lessons you are learning will prepare you to meet and overcome more adversity in the future. Trust in God, and let the peace flow in.