Chinese: 吃一堑长一智。
English: A fall into a pit, a gain in your wit.