idiom
learn by heart
Meaning
to memorize something perfectly
Example
He **learned the poem by heart** for the recital.