by_memory
1. [ adverb ] by committing to memory
Synonyms: by_heart
Examples:

"she knew the poem by heart"