久病成医
[jiŭ bìng chéng yī]
'A long-term illness makes a doctor' conveys the idea that through much adversity or struggle (such as enduring prolonged health issues), one becomes skilled and knowledgeable—capable and wise enough to offer solutions or advice based on experience.