"And now, please stay here this night" (Numbers 22:19). Bilam said to them: "I will know what more the LORD will speak with me" — if He should wish that I go with you, and if not. And let Balak reckon to himself that, even if he honors me as he said to me — that is to say, that I should set aside the command of the LORD my God — it is not that I am unable to curse them, for I am able, but I do not wish to transgress His word.
Bilam Tells Balak's Envoys He Will Not Defy the LORD's Word
Midrash Aggadah, Numbers 22:19
ועתה שבו נא בזה. אמר להם בלעם אדעה מה יוסף ה' דבר עמי, אם ירצה שאלך עמכם ואם לאו יחשוב אצלו בלק שאם יכבדני כאשר אמר אלי לאמר שאני מניח ציווי ה' אלהי, לא שאיני יכול לקללם כי אוכל, אבל איני רוצה לעבור את מאמרו: