AND THE VESSELS OF THE SANCTUARY (ibid., Numbers 31:6): This is the Ark, as it is said, "for the service of the sanctuary was upon them; they bore it upon the shoulder" (Numbers 7:9). Rabbi Yochanan said: These are the priestly garments, in which were the Urim and Thummim, as it is said, "and the holy garments which are Aaron's, etc." (Exodus 29:29). "And Balaam son of Beor they slew with the sword" (Numbers 31:8). And what was he seeking there? Rather, he had gone to take the reward for the twenty-four thousand who fell through his counsel.
The Sanctuary Vessels and Balaam Slain for His Wages of Death
Midrash Tanchuma Buber, Matot 5:2
וכלי הקדש (שם). זה הארון, שנאמר כי עבודת הקדש עליהם בכתף ישאו (שם ז ט), ר' יוחנן אמר אלו בגדי כהונה שבהן אורים ותומים, שנאמר ובגדי הקדש אשר לאהרן וגו' (שמות כט כט). ואת בלעם בן בעור הרגו בחרב (במדבר שם ח). ומה ביקש שם, אלא שהלך ליטול שכר של כ"ד אלף שנפלו בעצתו.