Psalm 18:23

I was also blameless with him. I kept myself from my iniquity.

1 Samuel 26:23

The LORD will render to every man his righteousness and his faithfulness; because the LORD delivered you into my hand today, and I wouldn't put forth my hand against the LORD's anointed.

1 Chronicles 29:17

I know also, my God, that you try the heart, and have pleasure in uprightness. As for me, in the uprightness of my heart I have willingly offered all these things. Now have I seen with joy your people, that are present here, offer willingly to you.

Psalm 7:1-8

LORD, my God, I take refuge in you. Save me from all those who pursue me, and deliver me,

Psalm 11:7

For the LORD is righteous. He loves righteousness. The upright shall see his face.

Psalm 17:3

You have proved my heart. You have visited me in the night. You have tried me, and found nothing. I have resolved that my mouth shall not disobey.

Psalm 37:27

Depart from evil, and do good. Live securely forever.

Matthew 5:29-30

And if your right eye causes you to stumble, pluck it out and throw it away from you.[note: idiom meaning to stop doing a sin] For it is more profitable for you that one of your members should perish, than for your whole body to be cast into hell.

Matthew 18:8-9

If your hand or your foot causes you to stumble, cut it off, and cast it from you.[note: idiom meaning to stop doing a sin] It is better for you to enter into life crippled or maimed, rather than having two hands or two feet to be cast into the eternal fire.

Treasury of Scripture Knowledge

Summary

I was also upright before him, and I kept myself from mine iniquity.

General references

Bible References

Upright

Psalm 11:7
For the LORD is righteous. He loves righteousness. The upright shall see his face.
Psalm 17:3
You have proved my heart. You have visited me in the night. You have tried me, and found nothing. I have resolved that my mouth shall not disobey.
Psalm 37:27
Depart from evil, and do good. Live securely forever.
1 Samuel 26:23
The LORD will render to every man his righteousness and his faithfulness; because the LORD delivered you into my hand today, and I wouldn't put forth my hand against the LORD's anointed.
1 Chronicles 29:17
I know also, my God, that you try the heart, and have pleasure in uprightness. As for me, in the uprightness of my heart I have willingly offered all these things. Now have I seen with joy your people, that are present here, offer willingly to you.

I kept

Matthew 5:29
And if your right eye causes you to stumble, pluck it out and throw it away from you.[note: idiom meaning to stop doing a sin] For it is more profitable for you that one of your members should perish, than for your whole body to be cast into hell.
Matthew 18:8
If your hand or your foot causes you to stumble, cut it off, and cast it from you.[note: idiom meaning to stop doing a sin] It is better for you to enter into life crippled or maimed, rather than having two hands or two feet to be cast into the eternal fire.

General references

Psalm 25:21
Let integrity and uprightness preserve me, for I wait for you.