Jeremiah 17:10

I, the LORD, search the heart, I test the mind, Even to give every man according to his ways, According to the fruit of his doings.

Surrounding context

17:9 "The heart is deceitful above all things, And desperately wicked; Who can know it?

17:10 I, the LORD, search the heart, I test the mind, Even to give every man according to his ways, According to the fruit of his doings.

17:11 "As a partridge that broods but does not hatch, So is he who gets riches, but not by right; It will leave him in the midst of his days, And at his end he will be a fool."

Translation and sources