"Have I not written for you noble things [shalishim] in counsels and knowledge?" (Proverbs 22:20). Bar Hunya said: read it as "in them [bam] counsel and knowledge." "Shalishim" - as in the meaning of "yesterday and the day before [shilshom]" (Exodus 21:29). Another interpretation: "shalishim" means warriors, as in the meaning of "and captains [shalishim] over all of it" (Exodus 14:7). Another interpretation of "shalishim": Rabbi Ishmael said: Every matter of the Torah is threefold. The Torah is in three parts - Torah, Prophets, and Writings. Its letters are threefold - alef, mem, tav, spelling emet [truth]. And the tribe was threefold - Reuben, Simeon, Levi - and its letters are threefold, lamed, vav, yod. And there were three siblings - Moses, Aaron, and Miriam. And he was hidden for three, as it is said, "and she hid him three months" (Exodus 2:2). Israel is threefold - priests, Levites, and Israelites. And it was the third month, as it is said, "in the third month after the children of Israel went out" (Exodus 19:1). The holiness is threefold [Holy, holy, holy]. Rabbi Levi said: From this you have learned that every deed of that day was threefold; therefore it says, "Have I not written for you threefold things." "In counsels and knowledge" - this teaches that through it the Holy One, blessed be He, taught counsel and knowledge to Moses, and wrote it for him in truth, and made it known to him in truth, and gave it to him in truth, so that he might go and make it known and let it be heard by Israel in truth, as it is said, "to make known to you the certainty of the words of truth, that you may return words of truth to those who sent you" (Proverbs 22:21).
Everything of the Torah Comes in Threes
Midrash Mishlei 22:5
(משלי כב כ): "הלא כתבתי לך שלישים בְּמֹעֵצוֹת ודעת" - בר חוניא אמר: בם עצות ודעת. "שלישים" - המד"א (שמות כא כט): "מתמול שלשום". ד"א "שלישים" - גיבורים, כמד"א (שמות יד ז): "ושלישים על כולו". ד"א "שלישים" - אמר רבי ישמעאל: כל מעשה תורה משולש: תורה נביאים וכתובים - אותיותיה משולשים - אל"ף מ"ם תי"ו = אמ"ת, ושבט משולש - ראובן שמעון לוי - ואותיותיו משולשים ל' ו' י'. ואחים שלושה - משה אהרן ומרים. ונצפן לשלושה, שנאמר (שמות ב ב): "ותצפנהו שלושה ירחים". ישראל משולשים - כהנים לויים וישראלים. וירח שלישי, שנאמר (שמות יט א): "בחודש השלישי לצאת בני ישראל". קדושה משולשת. אמר רבי לוי: הא למדת, שכל מעשה היום משולש היה, לכך נאמר "הלא כתבתי לך שלישים". "במועצות ודעת" - מלמד, שבה לימד הקב"ה עצה ודעת למשה, וכתב לו באמת, והודיעם לו באמת, ונתנם לו באמת, כדי שיילך הוא ויודיעם וישמיעם לישראל באמת, שנאמר: (משלי כב כא): "להודיעך קושט אמרי אמת, להשיב אמרים אמת לשולחיך"