A couple months ago (when I was having an especially hard time with my infertility trial), I was reading the Ensign and came across this talk by Jeffrey R. Holland. I am putting the link up, but I just wanted to quote a few of the things that really brought me comfort. http://lds.org/ldsorg/v/index.jsp?hideNav=1&locale=0&sourceId=70dd1a01e8d43210VgnVCM100000176f620a____&vgnextoid=2354fccf2b7db010VgnVCM1000004d82620aRCRD
". . . In one way or another, great or small, dramatic or incidental, every one of us is going to spend a little time in Liberty Jail—spiritually speaking. We will face things we do not want to face for reasons that may not be our fault. Indeed, we may face difficult circumstances for reasons that were absolutely right and proper, reasons that came because we were trying to keep the commandments of the Lord. . ."
". . . Whenever these moments of our extremity come, we must not succumb to the fear that God has abandoned us or that He does not hear our prayers. He does hear us. He does see us. He does love us. When we are in dire circumstances and want to cry, “Where art Thou?” it is imperative that we remember He is right there with us—where He has always been! We must continue to believe, continue to have faith, continue to pray and plead with heaven, even if we feel for a time our prayers are not heard and that God has somehow gone away. He is there. Our prayers are heard. And when we weep He and the angels of heaven weep with us. . ."
". . . We are not alone in our little prisons here. When suffering, we may in fact be nearer to God than we’ve ever been in our entire lives. That knowledge can turn every such situation into a would-be temple.
Regarding our earthly journey, the Lord has promised, “I will go before your face. I will be on your right hand and on your left, and my Spirit shall be in your hearts, and mine angels round about you, to bear you up” (D&C 84:88). That is an everlasting declaration of God’s love and care for us, including—and perhaps especially—in times of trouble. . ."
". . . Furthermore, we note that not only has the Savior suffered, in His case entirely innocently, but so have most of the prophets and other great men and women recorded in the scriptures. The point is this: if you are having a bad day, you’ve got a lot of company—very, very good company. The best company that has ever lived. . ."
". . .Therefore … let us cheerfully do all things that lie in our power; and then may we stand still, with the utmost assurance, to see the salvation of God, and for his arm to be revealed” (D&C 123:17; emphasis added).
". . .What a tremendously optimistic and faithful concluding declaration to be issued from a prison-temple! When he wrote those lines, Joseph did not know when he would be released or if he would ever be released. There was every indication that his enemies were still planning to take his life.
. . .Yet in these cold, lonely hours, Joseph says let us do all we can and do it cheerfully. And then we can justifiably turn to the Lord, wait upon His mercy, and see His arm revealed in our behalf.
What a magnificent attitude to maintain in good times or bad, in sorrow or in joy!"