Genesis 38 · a question people ask
Why is this story in the middle of Joseph's?
Genesis doesn't say. It records that this happened "At that time" (38:1), after the brothers sold Joseph (37:28), and chapter 39 picks up Joseph's story where 37:36 left it (39:1). Later Judah offers to become a slave in place of his brother Benjamin (44:33). And Tamar's son Perez is the ancestor of David (Ruth 4:18-22) and appears in Jesus' genealogy (Matthew 1:3).
The verses
“At that time, Judah went down from his brothers, and visited a certain Adullamite, whose name was Hirah.”
“The Midianites sold him into Egypt to Potiphar, an officer of Pharaoh’s, the captain of the guard.”
“Joseph was brought down to Egypt. Potiphar, an officer of Pharaoh’s, the captain of the guard, an Egyptian, bought him from the hand of the Ishmaelites that had brought him down there.”
“Now therefore, please let your servant stay instead of the boy, my lord’s slave; and let the boy go up with his brothers.”