Bereshit / Genesis 29:35 · Drash
וַתַּהַר עוֹד וַתֵּלֶד בֵּן וַתֹּאמֶר הַפַּעַם אוֹדֶה אֶת־יְהוָה עַל־כֵּן קָרְאָה שְׁמוֹ יְהוּדָה וַתַּעֲמֹד מִלֶּדֶת׃
And she conceived again and bore a son, and said: "This time I will thank (אוֹדֶה) the Eternal." That is why she called his name Yehudah (יְהוּדָה). And she stopped bearing.
Drash דְּרָשׁ
His own, not mine
People usually give thanks for what they did not expect. The midrash tells a parable of a kohen who thanked for a handful, not for a full measure of grain. And the Tanchuma shows how Leah's thanks became a trait of her descendants, from Yehudah to Daniel.
Bereshit Rabbah explains the names of Leah's sons. The name Levi: he will "accompany" (לְלַוּוֹת) the children to their Father in heaven. And of Yehudah (Judah) Rabbi Berechya in the name of Rabbi Levi tells a parable: one man gave a kohen a whole measure of tithe and got no thanks, and another gave a handful of ordinary grain, and the kohen thanked him. "You gave me my own share, but he gave of his own." So too the matriarchs thought each would have three sons, and when Leah bore a fourth, she said: "this time I will thank the Eternal". Midrash Tanchuma teaches: Leah took hold of thanks, and her descendants held to thanks after her: Yehudah, David and Daniel. And Rachel, for her silence, merited two tribes, Efrayim and Menashe.
How Bereshit Rabbah and Midrash Tanchuma explain it
Bereshit Rabbah "And she conceived again and bore a son, and said: 'The Eternal has heard that I am unloved, and He has given me this one too'" (Bereshit / Genesis 29:33)
And she called his name Shimon: this one will one day raise up a hater (Zimri). And who will heal his blow? "This one too": Pinchas, who will one day arise from Levi.
"And she conceived and bore a son", and so on, "that is why his name was called Levi" (Bereshit / Genesis 29:34). Rabbi Yudan said: this Levi will one day accompany (לְלַוּוֹת) the children to their Father in heaven. "That is why his name was called": wherever it says "that is why", there are many people.
"And she conceived again and bore a son, and said: 'This time I will thank the Eternal.'" Rabbi Berechya in the name of Rabbi Levi: of a kohen who went down to the threshing floor. One gave him a kor of tithe, and he was not grateful to him. And another gave him a handful of ordinary grain, and he was grateful to him. He said to him: "My lord kohen! I gave you a kor, and this one gave you only a handful, and you are grateful to him?!" He said to him: "You gave me from my own share, but this one gives me of his own, so I am grateful to him." So too the matriarchs thought that this one would raise up three and that one would raise up three. And when Leah bore a fourth son, she said: "This time I will thank the Eternal."
Midrash Tanchuma
Leah took hold of thanks, and her seed after her held to thanks. She said: "this time I will thank the Eternal". Yehudah her son after her: "Yehudah, your brothers will praise (יוֹדוּךָ) you" (Bereshit / Genesis 49:8). David: "Give thanks (הוֹדוּ) to the Eternal, for He is good" (Tehillim / Psalms 118:1). Daniel: "he prayed and gave thanks" (Daniel 6:11).
Rabbi Yehudah said: great is silence. For by the merit of Rachel's silence she merited to raise up two tribes in Israel, Efrayim and Menashe, beyond the other tribes.
Takeaway
A kor: a measure of grain, about two hundred litres. The tithe (מַעֲשֵׂר) is a part of the harvest that by the Torah goes to the kohanim and Levites, and it already belongs to them. Ordinary grain (חֻלִּין) is what the owner could have kept.
Shimon and Pinchas: Zimri of the tribe of Shimon sinned openly with a Midianite woman, and Pinchas of the tribe of Levi stopped him (Bamidbar / Numbers 25:6–14).
Rachel's silence: by the midrash, Rachel knew that Lavan would put Leah in her place, and kept silent, and even gave her sister the signs she had agreed on with Yaakov, so as not to shame her (Megillah 13b).