What is the importance of compassion in self realization?

What is the importance of compassion in self realization? (Buddhism and Hinduism)?