idiom
learn by heart
выучить наизусть
Meaning
to memorize something perfectly
Example
He **learned the poem by heart** for the recital.
Он выучил стихотворение наизусть для выступления.