President Kimball gave this insightful explanation:
“Life isn’t fair. We know some people who have done some very bad things, and yet they seem to have everything they want or need.”
Dr. Arthur Wentworth Hewitt suggested some reasons why the good suffer as well as the wicked: “First: I don’t know. Second: We may not be as innocent as we think. Third: … I believe it is because He loves us so much more than He loves our happiness. How so? Well, if on a basis of strict personal return here and now, all the good were always happy and all the bad suffered disaster (instead of often quite the reverse), this would be the most subtle damnation of character imaginable.” 1
“If pain and sorrow and total punishment immediately followed the doing of evil, no soul would repeat a misdeed. If joy and peace and rewards were instantaneously given the doer of good, there could be no evil—all would do good and not because of the rightness of doing good. There would be no test of strength, no development of character, no growth of powers, no free agency. … There would also be an absence of joy, success, resurrection, eternal life, and godhood.” 2
Our love of God must be pure, without selfish intent. The pure love of Christ must be the motive in our devotion.