Avot5: 17
כָּל מַחֲלוֹקֶת שֶׁהִיא לְשֵׁם שָׁמַיִם — סוֹפָהּ לְהִתְקַיֵּם, וְשֶׁאֵינָהּ לְשֵׁם שָׁמַיִם — אֵין סוֹפָהּ לְהִתְקַיֵּם. אֵיזוֹ הִיא מַחֲלוֹקֶת שֶׁהִיא לְשֵׁם שָׁמַיִם? זוֹ מַחֲלוֹקֶת הִלֵּל וְשַׁמַּאי; וְשֶׁאֵינָהּ לְשֵׁם שָׁמַיִם? זוֹ מַחֲלוֹקֶת קֹרַח וְכָל עֲדָתוֹ.
Any dispute that is for the sake of Heaven will endure; but one that is not for the sake of Heaven will not endure. What is [an example of] a dispute that is for the sake of Heaven? —- The dispute between Hillel and Shammai. And what is [an example of] a dispute that is not for the sake of Heaven? —- The dispute of Korah and his entire company.