Psalm 18:23

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

1 Samuel 26:23

The LORD render to every man his righteousness and his faithfulness: for the LORD delivered thee into my hand to-day, but I would not stretch forth my hand against the LORD'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, who are present here, to offer willingly to thee.

Psalm 7:1-8

Shiggaion of David, which he sang to the LORD, concerning the words of Cush the Benjaminite. O LORD my God, in thee do I put my trust: save me from all them that persecute me, and deliver me:

Psalm 11:7

For the righteous LORD loveth righteousness; his countenance beholdeth the upright.

Psalm 17:3

Thou hast proved my heart; thou hast visited me in the night; thou hast tried me, and shalt find nothing; I have 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 shall cause thee to sin, pluck it out, and cast it from thee: for it is profitable for thee that one of thy members should perish, and not that thy whole body should be cast into hell.

Matthew 18:8-9

Wherefore, if thy hand or thy foot causeth thee to sin, cut them off, and cast them from thee: it is better for thee to enter into life halt or maimed, rather than having two hands or two feet, to be cast into everlasting 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 righteous LORD loveth righteousness; his countenance beholdeth the upright.
Psalm 17:3
Thou hast proved my heart; thou hast visited me in the night; thou hast tried me, and shalt find nothing; I have purposed that my mouth shall not transgress.
Psalm 37:27
Depart from evil, and do good; and dwell for evermore.
1 Samuel 26:23
The LORD render to every man his righteousness and his faithfulness: for the LORD delivered thee into my hand to-day, but I would not stretch forth my hand against the LORD'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, who are present here, to offer willingly to thee.

I kept

Matthew 5:29
And if thy right eye shall cause thee to sin, pluck it out, and cast it from thee: for it is profitable for thee that one of thy members should perish, and not that thy whole body should be cast into hell.
Matthew 18:8
Wherefore, if thy hand or thy foot causeth thee to sin, cut them off, and cast them from thee: it is better for thee to enter into life halt or maimed, rather than having two hands or two feet, to be cast into everlasting fire.

General references

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