And Balak’s anger burned against Bilam, and he clapped his hands; and Balak said to Bilam: I called you to curse my enemies, and behold, you have blessed them these three times.
Torah Temimah: Yerushalmi Beitzah 5:2 — one may not clap on Yom Tov in the manner of anger.
Sefaria — Yerushalmi Beitzah 5:2
English: It was taught: One does not clap on a festival a clapping that is from anger, as you say, “And Balak’s anger burned against Bilam, and he clapped his hands.”
Halakhic restriction on festival clapping drawn from Balak’s angry gesture.
The verse’s angry hand-clap becomes the prototype of forbidden festival clapping driven by heat of temper.