idiom
learn by heart
背诵
Meaning
to memorize something perfectly
Example
He **learned the poem by heart** for the recital.
他为朗诵背诵了诗歌。