失敗は成功の元

Etymology
Literally, "failure is the basis of success".

Idiom

 * 1) failure is a stepping stone to success