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.

Jeremiah chapter 17 verse 10