肝に銘じる

肝に銘じる (きもにめいじる) means to keep firmly in mind.

Kana
きもにめいじる
Meaning
to keep firmly in mind
Japanese Example
今日の失敗を肝に銘じて、次に生かしたい。
Translation
I want to keep today mistake in mind and use it next time.