38:26

וַיַּכֵּר יְהוּדָה וַיֹּאמֶר צָדְקָה מִמֶּנִּי כִּי־עַל־כֵּן לֹא־נְתַתִּיהָ לְשֵׁלָה בְנִי וְלֹא־יָסַף עוֹד לְדַעְתָּה׃

Yehudah recognised [them] and said: "She is right, it is from me. For I did not give her to my son Shelah." And he was not intimate with her again.

Bereshit 38:26

וַיַּכֵּר יְהוּדָה וַיֹּאמֶר

Bereshit / Genesis 38:26 · Drash

Bereshit 38:26

וַיַּכֵּר יְהוּדָה וַיֹּאמֶר צָדְקָה מִמֶּנִּי כִּי־עַל־כֵּן לֹא־נְתַתִּיהָ לְשֵׁלָה בְנִי וְלֹא־יָסַף עוֹד לְדַעְתָּה׃

Yehudah recognised [them] and said: "She is right, it is from me. For I did not give her to my son Shelah." And he was not intimate with her again.

Drash דְּרָשׁ

Three voices from heaven

Sometimes you tell the truth at your own cost, and it seems nobody will value it. But sometimes there is far more behind such a confession than can be seen from outside.

In Tanchuma, Rabbi Yehudah HaLevi bar Shalom teaches: when Tamar was being led out to be burned, she could not find the things Yehudah had left as a pledge. God opened her eyes, she found them and sent word: "Yehudah (Judah), recognise your Creator." Because Yehudah saved three souls from fire, Tamar and the twins, and one from the pit, Yosef (Joseph), God saved his descendants: Chananyah (Hananiah), Mishael and Azaryah (Azariah) from the furnace and Daniel from the lions' den. Bereshit Rabbah: the holy spirit appeared in three courts: of Shem, of Shmuel (Samuel) and of Shlomo (Solomon).

How Midrash Tanchuma (Buber) and Bereshit Rabbah explain it

Midrash Tanchuma (Buber)

Another explanation. Rabbi Yehudah HaLevi bar Shalom said: as she was being brought out, the Holy One opened her eyes and she found them (the pledge) after she had lost them. For one only finds after losing, as it is written: "or has found a lost thing" (Vayikra / Leviticus 5:22). At once she sent to Yehudah: "by the man to whom these belong". She said to him: "Yehudah, recognise your Creator." At once "and Yehudah recognised". At that hour a voice from heaven went forth and said to him: "Say: she is pregnant by me, so that she not be burned." And after that he admitted: "from me was the matter".
The Holy One said to him: "Yehudah, you saved Me three souls from the fire and one from the pit. By your life, I too will save for you, as you saved for Me." Who are they? Chananyah, Mishael and Azaryah from the fiery furnace, and Daniel from the lions' den. What is written of them? "And among them were of the children of Yehudah Daniel, Chananyah, Mishael and Azaryah" (Daniel 1:6). It does not say "of the children of Chizkiyahu (Hezekiah)", but "of the children of Yehudah". Through what? Through his saving Tamar and her sons, and Yosef from the pit.
As soon as Reuven (Reuben) heard that Yehudah had confessed, he too rose and said: "I too defiled my father's bed." Elifaz (Eliphaz) said to Iyov (Job): "I will tell you, hear me, and what I have seen I will declare, what wise men have told" (Iyov / Job 15:17–18): these are Reuven and Yehudah. "Therefore to them alone the land was given" (Iyov / Job 15:19). When? "And no stranger passed among them" (ibid.): when Moshe (Moses) came to bless them. What did he say? "Let Reuven live and not die" and so on, "and this for Yehudah" (Devarim / Deuteronomy 33:6–7).

Bereshit Rabbah And Yehudah recognised

Rabbi Yirmiya in the name of Rabbi Shmuel bar Rav Yitzchak: in three places the holy spirit appeared: in the court of Shem, in the court of Shmuel, in the court of Shlomo. In the court of Shem: "and Yehudah recognised and said: she is right, from me". What is "from me"? Rabbi Yirmiya in the name of Rabbi Yitzchak: the Holy One said: you testify to what is revealed, and I testify to what is hidden in him. In the court of Shlomo: "she is his mother" (Melachim I / I Kings 3:27). Who said it? Rabbi Shmuel said: a voice from heaven cried out and said: "She is surely his mother!" In the court of Shmuel: "here I am, testify against me", and "he said: the Eternal is witness against you" (Shmuel I / I Samuel 12:3–5). "And he said: witness": a voice from heaven went forth and said: "Witness."
What is this about? It says of the sons of Eli: "and the sin of the young men was very great" (Shmuel I / I Samuel 2:17), and it is written: "how they lay with the women who assembled" and so on (2:22). Could the sons of that righteous man have done such a thing?! So it must be said: they delayed in Shiloh the offerings of women after childbirth, birds, and the women stayed a night away from home until they were purified. Because of this Scripture counts it as if they had lain with them. And likewise: "but his sons did not walk in his ways, and turned aside after gain" (Shmuel I / I Samuel 8:3). Could the sons of Shmuel the righteous have done such a thing?! Rabbi Berechyah said: a caravan would pass through Be'er Sheva, and they would leave the needs of the community and attend to their own needs, and for that Scripture counts it as if they took bribes.

Takeaway

The court of Shem: by the midrash, Shem son of Noach (Noah) was a judge, and Tamar was judged in his court. The court of Shlomo: two women dispute over a child (Melachim I / I Kings 3:16–28).
Tamar asks: "Do you recognise them?" (הַכֶּר נָא, Bereshit / Genesis 38:25). The brothers said the same words to their father, Yaakov (Jacob), over Yosef's bloodied coat (Bereshit / Genesis 37:32). The midrash hears in them: "Yehudah, recognise your Creator."
Daniel and his three friends are of the tribe of Yehudah. The midrash ties Tamar's rescue from fire to the rescue of Chananyah, Mishael and Azaryah from the furnace.