Thich Nhat Hanh said this quote

Suffering has its beneficial aspects. It can be an excellent teacher.