"And the whole earth was of one language" (Genesis 11:1). What is written above, concerning the matter? "These are the families of the sons of Noah" (there, 10:32), and afterward, "And the whole earth was of one language." Solomon said: "Though you pound the fool in a mortar [among the grain with a pestle, his folly will not depart from him]" (Proverbs 27:22). One who strikes the fool—while he is raising the rod to strike him a second time, he forgets the first blow. "Among the grain with a pestle"—while he is raising it the first time, it is already forgotten. Even so, "his folly will not depart from him."
The Generation of Babel as the Fool Pounded in the Mortar
Midrash Tanchuma Buber, Noach 24:1
ויהי כל הארץ שפה אחת, מה כתיב למעלה מן הענין, אלה משפחות בני נח (שם י לב), ואחר כך ויהי כל הארץ שפה אחת, אמר שלמה אם תכתוש את האויל במכתש [בתוך הריפות בעלי לא תסור מעליו אולתו] (משלי כז כב), מי שהוא מכה את האויל עם שהוא מעלה את השבט להיות שונה לו הוא שוכח את הראשון, בתוך הריפות בעלי, עם שהוא מעלה את הראשון כבר נשכח, אפילו כן לא תסור מעליו אולתו.