When their sons were grown, Judah arranged for Er, his oldest son, to marry a girl named Tamar.
Judah and Tamar had twin sons, Perez and Zerah. Perez had a son named Hezron, who had a son named Ram,
and I will make you swear by Yahweh, the God of heaven and earth, that you will not acquire a wife for my son among the daughters of the Canaanites among whom I am living.
and his mother, Hagar, arranged a marriage for him with an Egyptian woman.
While they were staying in Chezib, she gave birth to a third son and named him Shelah.
But Er had become so wicked in the sight of Yahweh that Yahweh ended his life.