The second great commandment is to "love thy neighbor as thyself" (Matthew 22:39). Countless lessons and talks have focused on the first part of the commandment, loving others, so we often ignore the second part. But love for others stems from love for self. It may not seem true: there are many people who are compassionate and kind who have self-love issues. However, I believe that their capacity to love others would increase dramatically if they learned to love themselves. When someone is filled with self-hatred and other negative emotions, there is little room for positive emotions, even for others. In fact, self-hatred is selfish (note self is in both words); it's focusing solely on ourselves. On the other hand, when we are filled with self-love, we are happier, more optimistic people with greater capacity to see the needs of others and fill them.
I remember first learning this lesson from watching The Buttercream Gang. A former member of the gang goes on a rampage in the store, yelling at his friends for trying to help him. They don't understand why he is treating them so badly when they are trying to be his friends again. He answers, "Because I hate myself!" Once he learns to love himself as his friends love him, he becomes a good person again and reconnects with his old friends.
Loving ourselves is not easy. There are many reasons why we don't love ourselves: sins, weaknesses, physical insecurities, emotional insecurities, abuse, lies, false comparisons, etc. But there is one reason why we should love ourselves that crushes all the reasons not to: Heavenly Father and Jesus Christ love us. We are so full of worth that Jesus suffered agonizing pain and death for us without ever stopping loving us.
Their love is incomprehensible to our human minds sometimes, allowing Satan to plant lies about this doctrine. An article in the October Ensign addressed these lies and reminded us that God's love is unconditional and eternal and that the Atonement can take away our negative feelings about ourselves.