Psalm 94:11 in the King James Version
The LORD knoweth the thoughts of man, that they are vanity.
Context
10 He who disciplines the nations, won’t he punish? He who teaches man knows.
11 The LORD knows the thoughts of man, that they are futile.
12 Blessed is the man whom you discipline, LORD, and teach out of your law,