Verse study
Psalm 18:21
21 For I have kept the ways of Yahweh, and have not wickedly departed from my God.
Meaning & historical commentary
The speaker claims a clean record before God, and the verse is careful about what kind of claim it is: not sinlessness, but a refusal to defect. In the ancient Near East a vassal or servant who "went wrong" with his lord was one who turned aside from the lord's commands and switched allegiance, so the psalmist is describing loyalty to a covenant relationship rather than perfection. Readers familiar with royal courts would hear it as a king's testimony that he stayed faithful to the terms of his sovereign's law.