Psalm 18:23

And I am perfect with him, And I keep myself from mine iniquity.

1 Samuel 26:23

and Jehovah doth turn back to each his righteousness and his faithfulness, in that Jehovah hath given thee to-day into my hand, and I have not been willing to put forth my hand against the anointed of Jehovah,

1 Chronicles 29:17

'And I have known, my God, that Thou art trying the heart, and uprightness dost desire; I, in the uprightness of my heart, have willingly offered all these: and now, Thy people who are found here I have seen with joy to offer willingly to Thee.

Psalm 7:1-8

'The Erring One,' by David, that he sung to Jehovah concerning the words of Cush a Benjamite. O Jehovah, my God, in Thee I have trusted, Save me from all my pursuers, and deliver me.

Psalm 11:7

For righteous is Jehovah, Righteousness He hath loved, The upright doth His countenance see!'

Psalm 17:3

Thou hast proved my heart, Thou hast inspected by night, Thou hast tried me, Thou findest nothing; My thoughts pass not over my mouth.

Psalm 37:27

Turn aside from evil, and do good, and dwell to the age.

Matthew 5:29-30

'But, if thy right eye doth cause thee to stumble, pluck it out and cast from thee, for it is good to thee that one of thy members may perish, and not thy whole body be cast to gehenna.

Matthew 18:8-9

'And if thy hand or thy foot doth cause thee to stumble, cut them off and cast from thee; it is good for thee to enter into the life lame or maimed, rather than having two hands or two feet, to be cast to the fire the age-during.

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, Righteousness He hath loved, The upright doth His countenance see!'
Psalm 17:3
Thou hast proved my heart, Thou hast inspected by night, Thou hast tried me, Thou findest nothing; My thoughts pass not over my mouth.
Psalm 37:27
Turn aside from evil, and do good, and dwell to the age.
1 Samuel 26:23
and Jehovah doth turn back to each his righteousness and his faithfulness, in that Jehovah hath given thee to-day into my hand, and I have not been willing to put forth my hand against the anointed of Jehovah,
1 Chronicles 29:17
'And I have known, my God, that Thou art trying the heart, and uprightness dost desire; I, in the uprightness of my heart, have willingly offered all these: and now, Thy people who are found here I have seen with joy to offer willingly to Thee.

I kept

Matthew 5:29
'But, if thy right eye doth cause thee to stumble, pluck it out and cast from thee, for it is good to thee that one of thy members may perish, and not thy whole body be cast to gehenna.
Matthew 18:8
'And if thy hand or thy foot doth cause thee to stumble, cut them off and cast from thee; it is good for thee to enter into the life lame or maimed, rather than having two hands or two feet, to be cast to the fire the age-during.

General references

Psalm 25:21
Integrity and uprightness do keep me, For I have waited on Thee.