I'll bend on this one, Jerry. If you want that to mean God had a change of mind, I can live with that.
I said that is we are going to take the verse "literally" then we can see that he had a change of mind.
Besides, I never said God CAN'T search all hearts or understand all imaginations of the thoughts.
So do you not think that the LORD was able to look at the heart of Abraham and determine whether or not he feared Him? One of the meanings of the Hebrew word translated "fearest" is "inspire reverence, godly fear, and awe."
Do you really not think that the LORD did not know that about Abraham when He looked at his heart?
I think it depends on the cases. If God never changes His mind about anything, then does He really respond to our prayers?
Please look at this short video because Dr. Brown answers your question better than I can: