"Then hear thou from heaven thy dwelling place, and forgive, and render unto every man according unto all his ways, whose heart thou knowest; (for thou only knowest the hearts of the children of men:)" (II Chronicles 6:30).
Eight times in Solomon's prayer at the dedication of the temple, he beseeches God to "hear from heaven" (vv.21,23,25,27,30,33,35,39) when His people confess their sins and pray for deliverance. It is marvelous that God, whose "dwelling place" is in heaven (vv.21,30,33,39) can actually hear the prayers of people here on Earth, but we remember that He is omnipresent through His Holy Spirit.
Even more marvelous, if possible, is the fact that He can hear prayers uttered only in our hearts. But He is also omniscient, and thus knows the very thoughts of our hearts.
Then, as we read of Jesus' wrath at the desecration of the temple by those who would commercialize their religion there, it was said that He "needed not that any should testify of man: for He knew what was in man" (John 2:25). This is direct confirmation that Jesus is God, for only God knows the thoughts of our hearts.
It is a wonderful day when we realize that God knows our hearts. It can be frightening, of course, if our hearts are not right with God, but it can also be of great comfort and exhilaration -- it all depends on the thoughts and motivations of our hearts. As David wrote long ago: "Thou understandest my thought afar off" (Psalm 139:2).
We need, therefore, to guard our thought-life just as much as our social life, "for He knoweth the secrets of the heart" (Psalm 44:21). May God help us to be "casting down imaginations, and every high thing that exalteth itself against the knowledge of God, and bringing into captivity every thought to the obedience of Christ" (II Corinthians 10:5). It is a good thing if our thoughts please Him. HMM