Bereshit / Genesis 38:26 · Pshat
וַיַּכֵּר יְהוּדָה וַיֹּאמֶר צָדְקָה מִמֶּנִּי כִּי־עַל־כֵּן לֹא־נְתַתִּיהָ לְשֵׁלָה בְנִי וְלֹא־יָסַף עוֹד לְדַעְתָּה׃
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.
Pshat פְּשָׁט
"She is right"
Yehudah (Judah) could have stayed silent, and Tamar would have been burned with her children. He recognises his things and says before everyone: "She is right." But what does "from me" mean? In Hebrew the word מִמֶּנִּי means both "from me" and "than me", and the commentators read it in different ways.
Rashi: "right" in her words, "from me" she is pregnant. And the sages teach: a voice from heaven said "from Me": by My design kings will come from her. Ramban: "more righteous than I", as Shaul (Saul) said to David "you are more righteous than I". She acted by the law: Shelah should have married her, and if not, Yehudah himself as the nearest kinsman.
How Rashi and Ramban explain it
Rashi Right
In her words.
From me.
She is pregnant. And our sages of blessed memory expounded: a voice went forth from heaven and said: "From Me and through Me these things came about." Because she was modest in her father-in-law's house, I decreed that kings would come from her, and from the tribe of Yehudah I decreed to raise kings in Israel.
For I did not give her.
For she acted rightly, since I did not give her to Shelah my son.
And he did not again.
Some say: he was not [intimate with her] again, and some say: he did not stop [being intimate with her]. The same word is in the story of Eldad and Meidad (Medad): "and they did not add" (Bamidbar / Numbers 11:25), and the Targum translates: "and they did not stop".
Ramban She is right, from me
"Right in her words, from me she is pregnant, and our sages expounded (Sotah 10b) that a voice went forth from heaven and said: from Me and through Me these things came about", the words of Rashi. But the correct reading is as in "more righteous and better than he" (Melachim I / I Kings 2:32), and "and he said to David: you are more righteous than I, for you have repaid me with good and I have repaid you with evil" (Shmuel I / I Samuel 24:17). She is more righteous than I in her deeds, for she is the righteous one and I sinned against her by not giving her to Shelah my son. And the explanation is this: Shelah is the dead husband's brother, and if he does not wish to take his brother's widow, the duty passes to the father as the nearest kinsman, as I explained above (Ramban on Bereshit / Genesis 38:8) on the law of marrying a brother's widow.
Takeaway
Marrying a brother's widow (יִבּוּם): if a man dies childless, his brother marries the widow to "raise up a name" for the dead (Devarim / Deuteronomy 25:5–6).
The family line from Peretz (Perez), son of Tamar and Yehudah, to King David has ten names (Rut / Ruth 4:18–22).
The words "and he did not again" (וְלֹא יָסַף) read two ways: "he was not intimate with her again" or "he did not stop being intimate with her". Rashi shows the second reading with the verse about the seventy elders, from the story in which Eldad and Meidad prophesy (Bamidbar / Numbers 11:25–26).