The story in the verses
Yehudah went down from his brothers and married the daughter of a Canaanite man named Shua. She bore him three sons: Er, Onan and Shelah. Yehudah took a wife for Er, his firstborn, and her name was Tamar. Er was evil in the eyes of Hashem, and Hashem put him to death. Yehudah told Onan to marry his brother's widow and raise up seed for his brother. Onan knew that the seed would not be his, and he saw to it that Tamar would not conceive. This was evil in the eyes of Hashem, and He put him to death as well.
Yehudah told Tamar to remain a widow in her father's house until Shelah grew up, for he feared that Shelah too would die like his brothers. Many days passed. Shelah grew up, and Tamar was not given to him as a wife. When she heard that Yehudah was going up to Timnah to shear his sheep, she took off her widow's garments, covered herself with a veil, and sat at the entrance of Einayim, on the road to Timnah. Yehudah did not know that she was his daughter-in-law. He left his seal, his cord and his staff with her as a pledge, and she conceived by him.
About three months later Yehudah was told that his daughter-in-law was with child, and he said: take her out and let her be burned. As she was taken out she sent the pledge to him with the words, "By the man to whom these belong I am with child." Yehudah recognized them and said: "She is more righteous than I, because I did not give her to Shelah my son."
When her time came there were twins in her womb. One put out a hand, and the midwife tied a scarlet thread on it and said: this one came out first. He drew back his hand, and his brother came out and was named Peretz. Then came the brother with the scarlet thread on his hand, and he was named Zerach.








