idiom
learn by heart
auswendig lernen
Meaning
to memorize something perfectly
Example
He **learned the poem by heart** for the recital.
Er hat das Gedicht auswendig gelernt für die Rezitation.