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.