idiom
know something by heart
何かを完璧に暗記する
Meaning
to memorize something perfectly
Example
She **knows all the poems by heart**.
彼女はすべての詩を暗記している。