idiom
learn by heart
暗記する
Meaning
to memorize something perfectly
Example
He **learned the poem by heart** for the recital.
彼は発表のためにその詩を暗記しました。