Shared ground
These closing lines present a clear “reversal” story: God changes the speaker’s condition from public grief to public joy. The speaker credits God directly (“you have…”), not merely time, luck, or self-recovery.
The images are concrete and social. “Sackcloth” signals mourning, and “dancing” signals celebration. The result is not just relief but restored life expressed in sound and movement.
The speaker also states a purpose: deliverance leads to praise. The “heart” is expected to sing, and the speaker ends by addressing God personally as “Yahweh my God,” promising lasting thanks.
Where interpretation differs (only where needed)
What “my heart” means. Some read it mainly as inner emotion (private gratitude). Others take it as the whole inner self (the person as a whole), which then expresses itself outwardly in song.
What “silent” means. Some take “silent” as simply not praising (withholding public thanks). Others think the background may include death-like quietness (the silence of the grave), so praise is contrasted with the threat of death.
How to read “forever.” Some read it as an emphatic way of saying “for the rest of my life.” Others hear a more literal, open-ended claim of unending thanks, language that stretches beyond the immediate crisis.
Why the disagreement exists
The poem uses worship language that can be both literal and figurative. Words like “heart,” “silent,” and “forever” can work at more than one level in Hebrew poetry, and the psalm’s earlier movement from near-death to rescue makes both “muted praise” and “deathly silence” plausible backdrops.
What this passage clearly contributes
Explicitly, it claims God is the agent of the reversal (mourning → dancing; sackcloth removed; gladness given), and it presents praise as the stated outcome of rescue (the heart sings and does not become silent). It also frames thanksgiving as ongoing, not one-time, and anchors it in a personal relationship (“my God”; vow to thank “forever”; see Psalm 30:11–12).