How were they situated? The Levites encamped around the Tabernacle of the Testimony. Moses and Aaron and his sons were on the east, as it is said (Numbers 3:38): "And those who encamped before the Tabernacle eastward, before the Tent of Meeting toward the sunrise, were Moses, Aaron, and his sons." And adjacent to them were Judah, Issachar, and Zebulun. From here they said: Happy is the righteous one and happy are his neighbors. These three tribes that were adjacent to Moses and Aaron became great in Torah, as it is said (Genesis 49:10): "The scepter shall not depart from Judah." [Of Issachar it is written] (1 Chronicles 12:33): "And of the children of Issachar, men who had understanding of the times, to know what Israel should do; their heads were two hundred" — these are the two hundred heads of Sanhedrins who came from Issachar; ["and all their brethren were at their command" — for they would agree upon the law at their word. Of Zebulun it is written] (Judges 5:14): "And out of Zebulun those who handle the scribal pen." Because they were neighbors of the Torah, they all became people of Torah. And on the south were the sons of Kohath, and adjacent to them were Reuben, Simeon, and Gad. From here they said: Woe to the wicked one and woe to his neighbor. These three tribes that were neighbors to Korah and his company on the south perished with him in his dispute (Numbers 16:32): "And the earth opened its mouth and swallowed them and their households." On the west were the sons of Gershom, and adjacent to them were Ephraim, Manasseh, and Benjamin. And on the north were the sons of Merari, and adjacent to them were Dan, Naphtali, and Asher. And [seven clouds of glory surrounded them, and thus was their journeying. There was a sign for Moses in the cloud as to when it would depart. As soon as it departed, he would say (Numbers 10:35): "Arise, O LORD, and let Your enemies be scattered," and the cloud would depart. Once the cloud departed, they would all prepare to travel and pack their vessels — whoever had a beast of burden; and if he did not, the cloud would carry the remainder. Once they were settled, they sounded the trumpets, and Judah and its standard journeyed first, its prince and his tribe after him. And there were ensigns for each and every prince — a flag. [And from them the kingdoms learned to make themselves a flag.] And the color upon each and every flag was like the color of the precious stones that were upon Aaron's heart; each and every tribe had its flag dyed like the color of its stone, and clouds were above them. And a kind of beam came out from the cloud, so that they knew in which direction they were to travel; thus was the journey of each and every standard. When they finished traveling to where He desired them to encamp, that cloud which appeared like a beam would, as it were, journey by itself, and they knew that in that place they would encamp. The clouds of glory came to a stop for them, and they began to settle in their tents wherever they would rest. And the cloud that was over the Tabernacle would travel over the camp of the Levites in the midst of the camps; it would stand first. Once it stood still, the sons of Kohath and the sons of Levi would set up the Tabernacle before all the camps, before they arrived, as it is said (Numbers 10:21): "And they set up the Tabernacle before they came." And once they set up the Tabernacle, they set up each and every one in his place, and the clouds of glory stood above them. This was a greatness in the hand of Moses, that the cloud of the glory of the Divine Presence would not descend to the Tabernacle until Moses said (Numbers 10:36): "Return, O LORD, unto the myriads of the thousands of Israel," and the clouds of glory surrounded them. And the Holy Spirit says through Solomon (Song of Songs 6:4): "You are beautiful, My love, as Tirzah." What is "as Tirzah"? That I am reconciled (mitratzeh) with you.]
How Israel Camped by Tribe and Flag Around the Tabernacle
Midrash Tanchuma Buber, Bamidbar 13:1
כיצד היו שרויין, הלוים יחנו סביב למשכן העדות, משה ואהרן ובניו מן המזרח, שנאמר והחונים לפני המשכן קדמה לפני אהל מועד מזרחה משה [ו]אהרן ובניו (במדבר ג לח), וסמוכים להם יהודה יששכר וזבולון, מכאן אמרו אשרי הצדיק ואשרי שכיניו, אלו ג' שבטים שהיו סמוכים למשה ואהרן נעשו גדולים בתורה, שנאמר לא יסור שבט מיהודה [וגו'] (בראשית מט י), [יששכר כתיב] ומבני יששכר יודעי בינה לעתים לדעת מה יעשה ישראל ראשיהם מאתים (דה"א יב לב), אלו מאתים ראשי סנהדראות שיצאו מיששכר, [וכל אחיהם על פיהם (שם), שהיו מסכימים הלכה על פיהם. מזבולון כתיב], ומזבולון מושכים בשבט סופר (שופטים ה יד), על שהיו שכיני תורה, נעשו כולם בני תורה, ומן הדרום בני קהת, וסמוכים להם ראובן ושמעון וגד, מכאן אמרו אוי לרשע אוי לשכנו, אלו שלשה השבטים שהיו שכנים לקרח ולעדתו בדרום, אבדו עמו במחלוקתו, ותפתח הארץ את פיה ותבלע אותם ואת בתיהם וגו' (במדבר טז לב), מן המערב בני גרשום, וסמוכים להם אפרים ומנשה ובנימין. ומן הצפון ובני מררי, וסמוכים להם דן ונפתלי ואשר, והיו [שבעה ענני כבוד מקיפין אותם, וכן היתה נסיעתם, סימן היה למשה בענן אימתי היה מסתלק, כיון שהיה מסתלק היה אומר קומה ה' ויפוצו אויביך (שם י לה), והענן מסתלק, נסתלק הענן, והיו כולם מתקינין ליסע ומישבין כליהם, מי שהיה לו בהמה, ואם לא היה לו, הענן נוטל את השאר, כיון שנתיישבו תקעו בחצוצרות, ונסע יהודה ודגלו תחלה נשיאו ושבטו אחריו, וסימניות על כל נשיא ונשיא מפה, [ומהם למדו המלכות להית עושה לה מפה], וצבע שעל כל מפה ומפה, כצבע של אבנים טובות שהיו על לבו של אהרן, כל שבט ושבט היתה צבועה מפה שלו כצבע של אבנו, ועננים היו על גביהם, (עד שהיו מתיישבין תקעו חצוצרות הלכו, וכך היו מהלכין על גביהם), וכמין קורה יוצא מן הענן שהיו יודעין לאיזה רוח הם נוסעין, כך היה מסע של כל דגל ודגל, גמרו להלך עד היכן שהוא רוצה שיחנו, אותו הענן שהיה נראה כמין קורה היה כנוסע עצמו, והן יודעין שבאותו המקום הן חונין, עמדו להן ענני כבוד, התחילו מיישבין באהליהם היכן ישרו, והענן שהיה על גבי המשכן היה מהלך על גבי מחנה הלוים באמצע המחנות, הוא היה עומד תחלה, כיון שהיה עומד לו, היו בני קהת ובני לוי מעמידין את המשכן קודם לכל המחנות עד שלא היו באים, שנאמר והקימו את המשכן עד בואם (במדבר י כא), וכיון שהיו מעמידין את המשכן היו מעמידים כל אחד ואחד במקומו, וענני כבוד עומדין על גביהם, זו היתה גדולה ביד משה, שלא היה ענן כבוד השכינה יורד למשכן, עד שהיה משה אומר שובה ה' רבבות אלפי ישראל (שם שם לו), וענני כבוד היו מקיפין אותן, ורוח הקדש אומרת על ידי שלמה יפה את רעיתי כתרצה (שה"ש ו ד), מהו כתרצה, שאני מתרצה לכם.