Background
A brother's duty
Background to Genesis 38
When a man died without a son, his brother was expected to marry the widow. Their first son would count as the dead man's, so that his name and his share of the family's land would go on. The law of Moses later regulated this custom (Deut 25:5–10), and the book of Ruth shows a relative taking up the same kind of duty (Ruth 4:5–10).
Judah told his son Onan to do this for Tamar. Onan took her as his wife but made sure she would not conceive, and the LORD put him to death (38:8–10). Judah then held back his youngest son Shelah (38:11, 14), leaving Tamar a widow with no future.
The signet, cord and staff Tamar asked for were a man's personal marks: a seal worn on a cord and his own staff (38:18). With them she proved who the father was, and Judah confessed that she was more in the right than he (38:26). Tamar is named in Jesus' genealogy (Matt 1:3).
In Scripture
Genesis 38