Shared ground
These verses present a movement from request to vow. The speaker asks Yahweh to teach him “your way,” and immediately frames that teaching as something meant to be lived out (“I will walk in your truth”). He also asks for inner unity—an “undivided heart”—so that reverence for God’s name is not crowded out by competing motives.
The promised response is praise. The speaker pledges wholehearted thanks and lasting honor to God’s name. That vow is grounded in God’s “great” loyal love and in a rescue described as deliverance from “the lowest Sheol,” the deepest reach of death’s realm.
Where interpretation differs
One question is what exactly “make my heart undivided” means. Some read it mainly as moral integrity (not living a double life). Others read it as single loyalty (not splitting allegiance between Yahweh and other objects of trust). Both fit the immediate contrast between a unified “heart” and the act of “fearing” (revering) God’s name.
Another question is how literal the language of “the lowest Sheol” is. Some take it as poetic language for an extreme crisis that felt like death was closing in. Others think it can imply a near-death event or a deliverance from a situation the speaker experienced as already at death’s threshold.
Why the disagreement exists
The poem uses inner-life language (“heart,” “fear your name”) and death-realm language (“Sheol”) that can be read as either literal description or intensified poetry. The psalm also blends present need with remembered rescue, which leaves open whether v. 13 points to a past deliverance, an ongoing pattern, or both.
What this passage clearly contributes
Explicitly, the text ties guidance and worship together: God’s instruction (“your way”) aims at a life aligned with “your truth,” and inner unity is requested as part of faithful reverence. It also presents praise not as generic gratitude, but as a response grounded in God’s character (“great” loyal love) and a specific rescue from deadly threat. The repetition of “heart” and “name” links internal devotion with outward honor of God’s reputation (cf. Psalm 86:15 for the wider psalm’s emphasis on God’s compassion and steadfast love).