Psalm 18:23

I was also perfect with him, And I kept myself from mine iniquity.

1 Samuel 26:23

And Jehovah will render to every man his righteousness and his faithfulness; forasmuch as Jehovah delivered thee into my hand to-day, and I would not put forth my hand against Jehovah's anointed.

1 Chronicles 29:17

I know also, my God, that thou triest the heart, and hast pleasure in uprightness. As for me, in the uprightness of my heart I have willingly offered all these things: and now have I seen with joy thy people, that are present here, offer willingly unto thee.

Psalm 7:1-8

O Jehovah my God, in thee do I take refuge: Save me from all them that pursue me, and deliver me,

Psalm 11:7

For Jehovah is righteous; he loveth righteousness: The upright shall behold his face.

Psalm 17:3

Thou hast proved my heart; thou hast visited me in the night; Thou hast tried me, and findest nothing; I am purposed that my mouth shall not transgress.

Psalm 37:27

Depart from evil, and do good; And dwell for evermore.

Matthew 5:29-30

And if thy right eye causeth thee to stumble, pluck it out, and cast it from thee: for it is profitable for thee that one of thy members should perish, and not thy whole body be cast into hell.

Matthew 18:8-9

And if thy hand or thy foot causeth thee to stumble, cut it off, and cast it from thee: it is good for thee to enter into life maimed or halt, 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 Jehovah is righteous; he loveth righteousness: The upright shall behold his face.
Psalm 17:3
Thou hast proved my heart; thou hast visited me in the night; Thou hast tried me, and findest nothing; I am purposed that my mouth shall not transgress.
Psalm 37:27
Depart from evil, and do good; And dwell for evermore.
1 Samuel 26:23
And Jehovah will render to every man his righteousness and his faithfulness; forasmuch as Jehovah delivered thee into my hand to-day, and I would not put forth my hand against Jehovah's anointed.
1 Chronicles 29:17
I know also, my God, that thou triest the heart, and hast pleasure in uprightness. As for me, in the uprightness of my heart I have willingly offered all these things: and now have I seen with joy thy people, that are present here, offer willingly unto thee.

I kept

Matthew 5:29
And if thy right eye causeth thee to stumble, pluck it out, and cast it from thee: for it is profitable for thee that one of thy members should perish, and not thy whole body be cast into hell.
Matthew 18:8
And if thy hand or thy foot causeth thee to stumble, cut it off, and cast it from thee: it is good for thee to enter into life maimed or halt, 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 thee.

American Standard Version Public Domain