Psalm 17:3 in the King James Version
Thou hast proved mine heart; thou hast visited me in the night; thou hast tried me, and shalt find nothing; I am purposed that my mouth shall not transgress.
Context
2 Let my sentence come out of your presence. Let your eyes look on equity.
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.
4 As for the deeds of men, by the word of your lips, I have kept myself from the ways of the violent.