(Numbers 22:2) "AND BALAK SAW." He saw the retribution that Israel had inflicted upon the Amorite. It would be better for the wicked to be blind, for their eyes bring a curse upon the world. In the generation of the Flood [it is written], "And the sons of God saw the daughters of men, etc." (Genesis 6:2). And [it is written], "And Ham, the father of Canaan, saw, etc." (Genesis 9:22). And [it is written], "And the officials of Pharaoh saw her, etc." (Genesis 12:15). And [it is written], "And Shechem son of Hamor saw her, etc." (Genesis 34:2). And likewise [here], "And Balak saw." A parable: It is like one who set guards to guard him from the marauding band, and he was confident in them because they were mighty men. The band passed through and killed them, and he trembled for himself. So too Balak: he saw what was done to Sihon and Og, to whom he had been paying tribute to guard him, and he was afraid for himself. And furthermore, he saw the miracles of the wadis of Arnon.
Why Balak Trembled When He Saw What Israel Did to the Amorite
Midrash Tanchuma Buber, Balak 2:1
וירא בלק. ראה פורענות שעשו ישראל לאמורי, נוח לרשעים שיהו סומין, שעיניהם מביאין מאירה לעולם, בדור המבול [כתיב] ויראו בני האלהים את בנות האדם וגו' (בראשית ו ב), [וכתיב] וירא חם אבי כנען (שם ט כב), [וכתיב] ויראו אותה שרי פרעה וגו' (שם יב טו), [וכתיב] וירא אותה שכם בן חמור וגו' (שם לד ב), וכן [כאן] וירא בלק, משל למי שהושיב שומרין לשומרו מן הגייס, והיה בטוח עליהן שהיו גבורים, עבר הגייס והרגן, והיה מרתת על עצמו, אף בלק כך, ראה מה נעשה בסיחון ועוג, שהיה מעלה עליהן שכר לשומרו, ונתיירא מעצמו, ועוד שראה נסים של נחלי ארנון.