Boyd K. Packer said this quote

If [we] have a good, miserable day once in a while, or several in a row, stand steady and face them. Things will straighten out. There is great purpose in our struggle in life.