I recall a Gemara where Rabbi Akiva makes an Aggadic (“midrashic”) comment on a story in the Torah, and he is told by a colleague that he has no business with aggadeta. The Gemara on Shabbat 96b is similar but not explicit. Anyone know the source?
Chagigah 14a: אמר לוֹ רַבִּי אֶלְעָזָר בֶּן עֲזַרְיָה: עֲקִיבָא, מָה לְךָ אֵצֶל הַגָּדָה! כְּלָךְ מִדַּבְּרוֹתֶיךָ אֵצֶל נְגָעִים וְאֹהָלוֹת. Rabbi Elazar ben Azarya said to him: Akiva, what are you doing occupying yourself with the study of aggada? This is not your field of expertise. Take [kelakh] your words to the topics of plagues and tents. Rashi says he was telling him to avoid teaching Aggadah until he learnt negaim and ohalos