Translations
For the LORD knoweth the way of the righteous: but the way of the ungodly shall perish.
For YHWH intimately knows the path of the righteous, but the path of the wicked will perish.
For Yahweh knows the way of the righteous—knows it from the inside out—but the way of the wicked leads only to ruin.
For the LORD guards the path of the righteous, but the way of the wicked will perish.
Footnotes
Yada in Hebrew denotes intimate, experiential knowledge—the same word used of a husband knowing his wife, and of Yahweh knowing Moses face to face (Exodus 33:17). Here Yahweh is not a distant observer but is personally acquainted with the righteous person's way. The F.O.G. renders "intimately knows"; the F.O.G.M. expands to "knows it from the inside out" to give this depth a voice in contemporary idiom. Grammatically notable: the subject of (to'ved, "will perish") is the feminine noun (derekh, "path/way")—it is the path itself that perishes, not simply the people walking it, underscoring that wickedness is ultimately a road to nowhere.

