Fetching details from the dictionary...

lesson; precept; teachings; moral
過去の失敗を教訓として同じ過ちを繰り返さない。
They learn from past failures and do not repeat the same mistakes.
この物語には人生についての深い教訓が含まれている。
This story contains a profound lesson about life.
過去の失敗から貴重な教訓を得ることができた。
I learned a lesson from the failure.