TT #84 · Parshas Vayeira · Passuk 21:9
And Sarah saw the son of Hagar the Egyptian, whom she had borne to Avraham, mocking.
Torah Temimah points to Tosefta / midrashic collection (as cited; parallels in various sources).
TT lemma: מצחק.
“Mocking.” It was taught: Rabbi Shimon ben Yochai says in the name of Rabbi Akiva: The “laughter” spoken of here is only idolatry… Rabbi Eliezer says: This is sexual immorality… Rabbi Yehoshua says: This is bloodshed… And I say: Heaven forbid that there should be in the house of that righteous man anyone who does such things; rather, this “laughter” is only about inheritance—Yishmael was mocking and saying, “I am the first-born and I take a double portion.”
Category B — Textual / lexical / semantic method.
Method — The Midrash examines the possible meanings of “metzachek”: idolatry, sexual immorality, bloodshed, or mockery over inheritance. Rabbi Yehoshua’s view reads the word in the context of Yishmael’s claim to the firstborn’s double portion.
Textual trigger — “Metzachek” in Bereishis 21:9; the Midrash weighs the word’s possible senses against the conduct that could have occurred in Avraham’s household.
The “mocking” of Yishmael is explained by some as idolatry, immorality or bloodshed, but the preferred reading is a claim of first-born inheritance rights that threatened Yitzchok.