(Numbers 16:11:) "THEREFORE YOU AND ALL YOUR COMPANY ARE GATHERED TOGETHER AGAINST THE LORD." This dissension that you are making against us is nothing other than against the Holy One, blessed be He. A parable: It is like a king who had many servants. He wished to make one of them a freedman, to give him a branch, and he went further and made him a senator. His fellows rose up against him. If he himself had made himself a freedman and seized that greatness for himself, they would have rightly risen up against him. But now that his master made him so, whoever rises up against him is not rising up against him, but against his master. So too did Moses say to them: If my brother Aaron had taken the priesthood for himself, you would have done well to complain against him. But the Holy One, blessed be He, gave it to him, for the kingship and the greatness are His. Whoever rises up against my brother Aaron is not disputing with Aaron, but with the Holy One, blessed be He. Therefore it is written (Numbers 16:11): "AND AARON, WHAT IS HE THAT YOU MURMUR AGAINST HIM?" Come and see the piety of Aaron the Righteous. At the moment when Moses poured the anointing oil upon Aaron, Aaron trembled and was terrified. He said to Moses his brother: Perhaps I was not worthy to be anointed with the anointing oil, and I have committed a trespass and become liable to excision (karet), as it is said (Exodus 30:32): "UPON HUMAN FLESH IT SHALL NOT BE POURED." Therefore the Holy One, blessed be He, testified concerning him (Psalms 133:1-3): "BEHOLD HOW GOOD AND HOW PLEASANT etc.; LIKE THE GOODLY OIL [UPON THE HEAD] RUNNING DOWN UPON THE BEARD, THE BEARD OF AARON etc.; LIKE THE DEW OF HERMON etc." He compared the anointing oil to the dew of Hermon: just as the dew of Hermon has no trespass in it, so too the anointing oil that was upon the head of Aaron has no trespass in it. Therefore it is written: "GATHERED TOGETHER AGAINST THE LORD."
Why Korach's Revolt Against Aaron Was Truly Against God
Midrash Tanchuma Buber, Korach 14:1
לכן אתה וכל עדתך הנועדים על ה' (שם שם יא). המחלוקת הזו שאתם עושים אותה כנגדינו, אינה אלא כנגד הקב"ה, משל למלך שהיו לו עבדים הרבה, רצה לעשות אחד מהם בר חורין, ליתן לו זמורה, חזר ועשה אותו סנקליטין, עמדו חביריו כנגדו, אילו הוא עצמו עשה בר חורין ונטל לעצמו אותה גדולה, יפה עמדו כנגדו עכשיו שרבו עשה לו, כל מי שעומד כנגדו לא כנגד רבו עומד, אף כך אמר להם משה, אילו אהרן אחי נטל לעצמו את הכהונה, יפה עשיתם שנתרעמתם עליו, הקב"ה נתן לו, שהמלכות והגדולה שלו, כל מי שעומד על אהרן אחי, לא על הקב"ה הוא חולק, לפיכך כתיב ואהרן מה הוא כי תלינו עליו (במדבר טז יא), בא וראה חסידותו של אהרן הצדיק, בשעה שהציק משה על אהרן שמן המשחה, נזדעזע אהרן ונבעת, אמר לו למשה אחיו שמא לא הייתי ראוי להמשח בשמן המשחה, ומעלתי ונתחייבתי כרת, שנאמר על בשר אדם לא ייסך (שמות ל לב), לפיכך העיד עליו הקב"ה, הנה מה טוב ומה נעים וגו', כשמן הטוב [על הראש] יורד על הזקן זקן אהרן וגו', כטל חרמון וגו' (תהלים קלג א ב ג), הקיש שמן המשחה לטל חרמון, מה טל חרמון אין בו מעילה, כך שמן המשחה שעל ראש אהרן אין בו מעילה, לפיכך כתיב הנועדים על ה'.