There are some good magicians who claim to read minds. They use tricks they have learned to appear to have the power. Basically, it is just clever deception.
The Bible is the word of God because it tells us what people are thinking. It tells us what kings are thinking when they would rather not have anyone know. There is evidence of this in all three of the synoptic gospels, Matthew, Mark, and Luke.
King Herod knew about Jesus. The knowledge frightened him because he thought it was John the Baptist whom he had beheaded. The Bible tells us that Herod “had wanted to put him to death, but he feared the crowd because they regarded John as a prophet,” (Matthew 14:5). The king would not have shared his fears with a biblical writer. Four verses later, the Bible revealed Herod’s mindset when it told us, “he was grieved” when he put John to death (Matthew 14:9). Evidently, John had found a way into Herod’s heart and the Bible told us what was there.
In Mark chapter six, there is another insight into Herod’s mind when the Bible told us how disturbed Herod was when he heard about Jesus. Mark wrote that Herod “kept saying, ‘John, whom I beheaded, has risen.’” Herod was really frightened that John was alive, and the Bible told us what he thought.
In the same passage, there is more information about Herod’s mindset when the Bible tells us, “for Herod was afraid of John, knowing that he was a righteous and holy man, and he kept him safe,” (Mark 6:20) It is highly unlikely that a king would share his fears with anyone. God, however, knows the minds of every person.
Another insight into Herod’s psyche is in Luke 9:7 which relates Herod “was greatly perplexed.” The word, perplexed, means, “thoroughly at a loss, unable to find a way out.”/1 Now we know why Herod was afraid.
The Bible proves itself the inspired word of God. It tells us what a king was thinking and feeling. The Bible does what no other book can do because it was written by the Holy Spirit of God (2 Peter 1:21)
1/ Word Pictures of the Greek New Testament, by A.T. Robertson