Pain doesn't last. And when it's gone, we have something to show for it. Growth.
When your sense of self and happiness comes from within and isn't a roller coaster ride dependent on others or circumstances, you approach life differently. You make better choices. You draw to you the people and situations that matter. The others, they fall away.