Psalm 18:23

And I was upright with him, and kept myself from mine iniquity.

1 Samuel 26:23

And Jehovah will render to every man his righteousness and his faithfulness; for Jehovah gave thee into my hand this day, and I would not stretch forth my hand against Jehovah's anointed.

1 Chronicles 29:17

And I know, my God, that thou triest the heart, and hast pleasure in uprightness. In the uprightness of my heart have I willingly offered all these things; and now have I seen with joy thy people, which are present here, offer willingly to thee.

Psalm 7:1-8

{Shiggaion of David, which he sang to Jehovah, concerning the words of Cush the Benjaminite.} Jehovah my God, in thee have I trusted: save me from all my pursuers, and deliver me;

Psalm 11:7

For righteous is Jehovah; he loveth righteousness, his countenance doth behold the upright.

Psalm 17:3

Thou hast proved my heart, thou hast visited me by night; thou hast tried me, thou hast found nothing: my thought goeth not beyond my word.

Psalm 37:27

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

Matthew 5:29-30

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

Matthew 18:8-9

And if thy hand or thy foot offend thee, cut it off and cast it from thee; it is good for thee to enter into life lame or maimed, rather than having two hands or two feet to be cast into 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 righteous is Jehovah; he loveth righteousness, his countenance doth behold the upright.
Psalm 17:3
Thou hast proved my heart, thou hast visited me by night; thou hast tried me, thou hast found nothing: my thought goeth not beyond my word.
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; for Jehovah gave thee into my hand this day, and I would not stretch forth my hand against Jehovah's anointed.
1 Chronicles 29:17
And I know, my God, that thou triest the heart, and hast pleasure in uprightness. In the uprightness of my heart have I willingly offered all these things; and now have I seen with joy thy people, which are present here, offer willingly to thee.

I kept

Matthew 5:29
But if thy right eye be a snare to thee, pluck it out and cast it from thee: for it is profitable for thee that one of thy members perish, and not thy whole body be cast into hell.
Matthew 18:8
And if thy hand or thy foot offend thee, cut it off and cast it from thee; it is good for thee to enter into life lame or maimed, rather than having two hands or two feet to be cast into eternal fire.

General references

Psalm 25:21
Let integrity and uprightness preserve me; for I wait on thee.