Psalm 18:22

For all his judgments were before me, and I did not put away his statutes from me.

Cross-references

Psalm 119:112 inclines the heart to perform statutes forever — closely matching David's resolve to not put away God's statutes.

Psalm 119:117 prays for safety to regard statutes continually — similar to David's claim that he did not put away God's statutes.

Psalm 119:128 considers all precepts right and hates false ways — parallel to David's commitment to not put away God's statutes.