Tanach · Rishonim on Tanach · Sforno · Torah
Sforno on Numbers 22:7/ספורנו על במדבר כ״ב:ז׳
אוּקְסָמִים בְּיָדָם. כְּלֵי הַקֶּסֶם, כִּי קוֹסֵם הָיָה בִּלְעָם לְכַוֵּן הַשָּׁעָה, כְּאָמְרוֹ ״וְאֵת בִּלְעָם בֶּן בְּעוֹר הַקּוֹסֵם הָרְגוּ בְנֵי יִשְׂרָאֵל בַּחֶרֶב עַל חַלְלֵיהֶם״ (יהושע יג:כב).
1וקסמים בידם, the instruments by means of which to perform sorcery.. Bileam’s specific expertise in such sorcery was to calculate precisely when certain constellations would be favourable to what he planned to achieve. He is described as a sorcerer when his death his reported in Joshua 13,22.