"At the head of the roaring throngs she calls" (Proverbs 1:21). [At the head of the roaring throngs she is the one who calls. How so? From the head of the Torah, how many multitudes does she destroy? The generation of the Flood, the generation of the Dispersion, the generation of Sodom. Hence: "At the head of the roaring throngs she calls."
Wisdom Cries Out at the Head of the Roaring Throngs of Torah
Midrash Tanchuma Buber, Bechukotai 4:2
בראש הומיות תקרא (משלי א כא), [בראש הומיות היא קוראה, כיצד מראשה של תורה כמה אוכלוסין היא מאבדת, דור המבול, דור הפלגה, דור סדום, הוי בראש הומיות תקרא.