Mencius said this quote

Integrity, wisdom, skill, intelligence – such things are forged in adversity.