Besides the merit of Torah that eventually brings a person who learned it back to life, the Torah also speaks favorably about him and speaks in his favor, as it says, ‘as you walk, it will guide you, when you lie down it will protect you, and when you awake it will speak for you’. Our Sages learned from the end of the verse that you awake (in the world to come) because it speaks for you (in your favor).