implies that
In difficult times we take valuable lessons and become wiser; suggests that facing difficult or challenging situations can be a valuable source of learning and personal growth
also
Adversity and loss make a man wise. Adversity is a good discipline.