"Nevertheless Kain shall be wasted (ki im yihyeh le-va'er Kayin)" — for the nations will seek to consume you, and on account of the hatred of Israel, how long will you be able to be saved, until Sennacherib king of Assyria comes and confounds the whole entire world. This is "how long? Asshur shall carry thee away captive (ad mah Asshur tishbeka)." Another interpretation: "Strong is thy dwelling-place (eitan moshavekha)." Balaam said to Jethro: You were with us in Egypt in one counsel, and you ought to have toiled with us, but instead you became a proselyte and cleaved to the seed of Abraham, who is called "Ethan the Ezrahite." "And thou puttest thy nest in a rock (ve-sim ba-sela kinnekha)." Our Sages of blessed memory said: The grandsons of Jethro, they sat in the Chamber of Hewn Stone and taught Torah in public, as it is said, "And the families of the scribes which dwelt at Jabez; the Tirathites, the Shimeathites, the Suchathites" (1 Chronicles 2:55). And "rock" means nothing but the Temple, as it is said, "upon the crag of the rock, and the strong place" (Job 39:28). Another interpretation: "And thou puttest thy nest in a rock." This is the Holy One, blessed be He, who is called "rock," and he came to take shelter under the wings of the Holy One, blessed be He, as it is said, "The Lord is my rock, and my fortress" (2 Samuel 22:2). For were it not so, "nevertheless Kain shall be wasted." And from when does it become liable to be consumed? From when the tribes were exiled; but those who were in Jerusalem were not exiled. And even at the destruction of the Temple, the sons of Jonadab son of Rechab, who were of the sons of the Kenite, were not exiled, for the Holy One, blessed be He, sent them to the mountains of darkness.
Balaam's Oracle on the Kenites and Jethro's Descendants
Midrash Aggadah, Numbers 24:22
כי אם יהי' לבער קין. שהאומות יבקשו לבערך, ובשביל שנאתן של ישראל עד מה תוכל להנצל, עד שיבא סנחריב מלך אשור ויבלבל כל העולם כולו, הוי עד מה אשור תשבך. ד"א איתן מושביך. אמר בלעם ליתרו עמנו היית במצרים בעצה אחת, והי' לך לטרח עמנו אלא שנתגיירת ונדבקת בזרעו של אברהם שנקרא איתן האזרחי: ושים בסלע קנך. אמרו חכמינו ז"ל בני בניו של יתרו הם ישבו בלשכת הגזית, ולימדו תורה ברבים, כמו שנאמר וממשפחות (בני) [סופרים יושבי] יעבץ תרעתים שמעתים סוכתים (דה"א ב' נ"ה), ואין סלע אלא בית המקדש, שנאמר על שן סלע ומצודה (איוב ל"ט כ"ח): ד"א ושים בסלע קנך. זה הקב"ה שנקרא סלע, ובא לחסות תחת כנפיו של הקב"ה, שנא' ה' סלעי ומצודתי (ש"ב כ"ב ב'), שאלולי כן כי אם לבער קין, ומאימתי מתחייב לבער, משגלו השבטים, אבל אותם שהיו בירושלם לא גלו, ואפילו בחרבן בית המקדש לא גלו מבני יונדב בן רכב שהם היו מבני קני, שהקב"ה שלחם להרי חשך: