(Numbers 22:37:) "And Balak said to Balaam: Did I not surely send to you, etc." He prophesied that his end would be to go in disgrace. And Balaam too answered him concerning his own matter, (Numbers 22:38:) "And Balaam said to Balak: Behold, I have come to you now; am I able at all to speak anything?" — that is, it is not in my power to say what I wish.
Balak and Balaam Prophesy Their Own Disgrace at Their Meeting
Midrash Tanchuma Buber, Balak 14:13
ויאמר בלק אל בלעם הלא שלח שלחתי אליך וגו' (שם שם לז). נתנבא שסופו לילך בקלון, ואף בלעם השיבו בענינו, ויאמר בלעם אלבלק הנה באתי אליך עתה היכול אוכל דבר מאומה (שם שם לח). שאין בידי רשות לומר מה שאני רוצה.