In the first two messages we are told that the Lord put a word in Balaam's mouth & he started to speak his message
Numbers 23:4 NASB
4 Now God met Balaam, and he said to Him, “I have set up the seven altars, and I have offered up a bull and a ram on each altar.” 5 Then the Lord put a word in Balaam’s mouth and said, “Return to Balak, and you shall speak thus.”
Numbers 23:14 NASB
14 So he took him to the field of Zophim, to the top of Pisgah, and built seven altars and offered a bull and a ram on each altar. 15 And he said to Balak, “Stand here beside your burnt offering while I myself meet the Lord over there.” 16 Then the Lord met Balaam and put a word in his mouth and said, “Return to Balak, and thus you shall speak.”
But in the third message we are told that the spirit of the Lord came upon Balaam & he uttered his message unlike in the first two messages where we are only told of a word in Balaam' mouth.
Numbers 24 New American Standard Bible (NASB)
The Prophecy from Peor
24 When Balaam saw that it [a]pleased the Lord to bless Israel, he did not go as at other times to [b]seek omens but he set his face toward the wilderness. 2 And Balaam lifted up his eyes and saw Israel [c]camping tribe by tribe; and the Spirit of God came upon him.
1) First message
Balaam only sees the fringes/outskirts of the camp
2) Second message
Balaam only sees a part of the people
Balaam sees clearly the tribes assembled side by side
Could this distinction be a reflection that the first two messages were uttered through divination & the third through a spirit of prophecy