Jeremiah 17:10 NKJV

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.