Examine me, O LORD, and prove me; try my reins and my heart.
Let the evil of the wicked come to an end, but establish the righteous. The One who examines the thoughts and emotions is a righteous God.
You have tested my heart; You have visited by night; You have tried me and found nothing [evil]; I have determined that my mouth will not sin.
For You, God, tested us; You refined us as silver is refined.
Search me, God, and know my heart; test me and know my concerns.
See if there is any offensive way in me; lead me in the everlasting way.
How many iniquities and sins have I committed? Reveal to me my transgression and sin.
Does He not see my ways and number all my steps?
If I have walked in falsehood or my foot has rushed to deceit,
let God weigh me with an accurate balance, and He will recognize my integrity.
LORD of Hosts, testing the righteous and seeing the heart and mind, let me see Your vengeance on them, for I have presented my case to You.
I will put this third through the fire; I will refine them as silver is refined and test them as gold is tested. They will call on My name, and I will answer them. I will say: They are My people, and they will say: The LORD is our God."