Bamidbar / Numbers 22:18
וַיַּעַן בִּלְעָם וַיֹּאמֶר אֶל־עַבְדֵי בָלָק אִם־יִתֶּן־לִי בָלָק מְלֹא בֵיתוֹ כֶּסֶף וְזָהָב לֹא אוּכַל לַעֲבֹר אֶת־פִּי יְהוָה אֱלֹהָי לַעֲשׂוֹת קְטַנָּה אוֹ גְדוֹלָה׃
And Bilam answered and said to the servants of Balak: "If Balak would give me his house full of silver and gold, I cannot go beyond the word of the Eternal my Almighty, to do anything small or great.
Pshat פְּשָׁט
A house full of silver
Rashi: the words "his house full of silver and gold" show that Bilam (Balaam) covets other people's money, and that against his will he foretold that the blessings of the fathers cannot be undone. Rabbeinu Bahya: he calls Balak's honoured envoys "servants" because they spoke to him proudly, and a king's servant does not break his order, all the more so the word of the Eternal.
How Rashi and Rabbeinu Bahya explain it
Remez רֶמֶז
Small and great
The Degel Machaneh Ephraim reads this as a hint to the two letters hei (ה) of the Name of the Eternal: the first is "great", the world of thought, the last is "small", speech. A righteous man lifts a decree by thought to its root and sweetens it, while Bilam (Balaam) admits he can do neither. Ibn Ezra: "small or great" are descriptions whose noun is left out.
How Degel Machaneh Ephraim and Ibn Ezra explain it
Drash דְּרָשׁ
The disciples of Bilam
The midrash: Bilam (Balaam) had an evil eye, a haughty spirit and a wide, greedy soul, and each trait is seen in his words. Mishnah Avot sets the disciples of Avraham, who have a good eye, a humble spirit and a modest soul, against the disciples of the wicked Bilam: the first inherit the world to come, the second Gehinnom (גֵּיהִנֹּם).
How Midrash Tanchuma (Buber) and Pirkei Avot explain it
Sod סוֹד
Humility for the sake of greatness
The Sefat Emet: at first Bilam (Balaam) was proud, and when he was not allowed to go, he chose the way of humility, not a true one, but one meant to reach greatness. And he got what he wanted: a wicked man at once receives a reward in this world for any humility. True humility is to humble oneself truly before the Eternal, and humility in deeds meant to reach the true one is also good.
How Sefat Emet explain it