Bamidbar / Numbers 23:19 · Sod
לֹא אִישׁ אֵל וִיכַזֵּב וּבֶן־אָדָם וְיִתְנֶחָם הַהוּא אָמַר וְלֹא יַעֲשֶׂה וְדִבֶּר וְלֹא יְקִימֶנָּה׃
God is not a man, that He should lie, nor a son of man, that He should change His mind. Has He said, and shall He not do it? Or has He spoken, and shall He not fulfil it?
Sod סוֹד
God in a man
Sometimes the will of one person becomes the will of Heaven. The Kedushat Levi explains when this happens, and why it did not happen with Bilam.
The Kedushat Levi: a righteous man acts so that the Eternal, as it were, clothes Himself in him and does his will. So Moshe (Moses) is called "the man of the Almighty". But this happens only when one prays for good for Israel. Bilam, who wanted a curse, did not achieve it: for a lie God does not clothe Himself in a man. Even "the Eternal is a man of war": the downfall of the nations, through which His Name is sanctified, is in truth a kindness.
How Kedushat Levi explain it
Kedushat Levi God is not a man, that He should lie
In the spirit of what our sages said on the verse "You will decree, and it will be fulfilled for you": you decreed below, and so on. A righteous man acts so that the Eternal, blessed is He, as it were clothes Himself in the righteous man, and as the righteous man wills, so it will be. This is "a prayer of Moshe (Moses), the man of the Almighty": through the prayer of Moshe the Almighty, as it were, clothed Himself in a man, that is, in Moshe, to do his will, as it says: "had not Moshe His chosen one stood in the breach". This is "the man of the Almighty": divinity clothes itself in a man. But this happens only when one prays for good to flow to Israel. And the wicked Bilam (Balaam), who wanted to curse Israel, could not bring the Eternal, blessed is He, to clothe Himself in a man and do Bilam's will. This is "God is not a man, that He should lie": for a lie, for cursing Israel, God does not become a man, God does not clothe Himself in a man to do his will and curse. And so is explained "the Eternal is a man of war, the Eternal is His Name": for the downfall of the nations the Eternal, blessed is He, clothes Himself in a man to do the will of the righteous man and take vengeance on the nations, though this is the power of judgement. But in truth their downfall is a great kindness to the nations: through their downfall His great Name is magnified and sanctified, and there is no kindness greater than this. This is "the Eternal is a man of war, the Eternal is His Name": the Eternal, blessed is He, clothes Himself in a man of war to fight the nations, as with Pharaoh. That is why it says "the Eternal is His Name": the four-letter Name is mentioned, and it is kindness, and taking vengeance on them is a kindness. That is, with the Name which is kindness He takes vengeance on them.
Takeaway
"You will decree, and it will be fulfilled for you" (Iyov / Job 22:28). The Talmud reads it so: you decreed below, and the Holy One, blessed is He, fulfils your word above (Taanit 23a).
"A prayer of Moshe (Moses), the man of the Almighty" (Tehillim / Psalms 90:1). "Had not Moshe His chosen one stood in the breach before Him" (Tehillim / Psalms 106:23).
"The Eternal is a man of war (אִישׁ מִלְחָמָה)" (Shemot / Exodus 15:3): the Kedushat Levi links this word "man" (אִישׁ) to Bilam's words "God is not a man".
The four-letter Name, the Eternal, stands for the attribute of mercy, and the Almighty for the attribute of strict justice.