Contradiction with Jeremiah 17:10
This verse states that the Lord searches the heart and tests the mind, suggesting separate moments of investigation rather than an inherent, constant knowing as implied in Psalms 139:2.
Jeremiah 17:10: I the LORD search the heart, [I] try the reins, even to give every man according to his ways, [and] according to the fruit of his doings.
Contradiction with Ecclesiastes 8:17
This verse indicates that humans cannot fully understand the work of God, which contrasts with the idea in Psalms 139:2 that God has complete understanding of human actions and thoughts.
Ecclesiastes 8:17: Then I beheld all the work of God, that a man cannot find out the work that is done under the sun: because though a man labour to seek [it] out, yet he shall not find [it]; yea further; though a wise [man] think to know [it], yet shall he not be able to find [it].
Contradiction with 1 Kings 8:39
It suggests that God alone knows the hearts of all men, which might imply a more selective or conditional knowing rather than the immediate and constant perception in Psalms 139:2.
1 Kings 8:39: Then hear thou in heaven thy dwelling place, and forgive, and do, and give to every man according to his ways, whose heart thou knowest; (for thou, [even] thou only, knowest the hearts of all the children of men;)