Jeremiah 17:10

I the LORD search the heart and test the mind, to give every man according to his ways, according to the fruit of his deeds.