肝に銘ずる(きもにめいずる)

Japanese vocabulary

Meaning: to engrave in one's heart; to inscribe on one's liver

See it used in real works