Where Are You?
Perceiving apparent inconsistencies in Rashi leads to a deeper understanding.
"And God came to Bilam and He said 'Who are these men with you?'"
Who are these men with you? - RASHI: He (God) gave him the opportunity for error. He (Bilam) said: At times not everything is revealed to Him, He is not omniscient. So I shall anticipate a time when I can curse without His understanding.
WHAT IS RASHI SAYING?
The fact that God needed to ask Bilam who these men were, indicated to Bilam that God may not know everything. This encouraged Bilam to go ahead with his plan to curse Israel, because he had a basis to assume that he could successfully slip by God's watchful eye.
This comment, itself, does not present difficulties. However when we compare this comment with two Rashi comments in Bereishis we can see a difficulty.
In Genesis 3:9 when God asked Adam, as he hid in the Garden of Eden, "ayeka" "Where are you?" Rashi comments:
Where are you? - Rashi: He (God) knew where he was; rather, He wanted to engage him (Adam) in conversation so that he would not be too bewildered to repent.
And again in Genesis 4:9 when, after Cain murdered his brother, God asked him: "Where is Abel, your brother?"
Where is Abel your brother - Rashi: For the purpose of engaging him in calm conversation so that he may repent and say 'I killed him and have sinned to You.'
Comparing these comments with the Rashi-comment on our verse we see that here Rashi gave a different, even sinister, reason for God's question to Bilam. He says God's question was intended to cause him to err while in Bereishis he gives more benign reasons to explain God's apparent lack of knowledge. Can you explain these different explanations so there won't be a contradiction?
A Possible Answer: In the examples cited about Adam and Cain, Rashi explains that God did not want to surprise the person with whom He was communicating. (A voice from God can be shocking and quite unsettling.) God, therefore, thoughtfully posed an innocuous and unnecessary question (unnecessary, since He already knew the answer). In the cases of Adam and Cain, where they had already transgressed the Divine word, this was God's way of not shocking them so that they would not be defensive and thus be psychologically free to admit their guilt. In our case, however, Bilam had not yet done anything wrong. He was just considering what he would do. (See Gur Aryeh.)
We can nevertheless ask, why would God feign ignorance and thereby allow Bilam to err? We would answer that in this way God would be balancing the scales in Bilam's mind. Up to this point God had actively interfered with Bilam's plans by asking him not to curse the people. Nothing could be clearer. Bilam confronted with such divine intervention didn't have much freedom of choice. So, perhaps, in order to balance his freedom, God introduced this opportunity to err. We find a similar idea in the case of God's hardening of Pharaoh's heart, after he had witnessed the plagues. Hardening his heart would seem to take away Pharaoh's free will. To answer this question, Rambam explains that this was done in order to balance Pharaoh's choice. He had witnessed such startling miracles that he was left with no free choice. Thus his hardened heart was meant to offset the personally overwhelming experience of witnessing the Ten Plagues. Likewise here, Bilam's free choice was assaulted by seeing the angel of God standing in front of him, thus God's feigned ignorance was intended to offset this and make his choice more balanced.