Genesis has all of the elements of sinful human nature.... absolutely nothing is left out.
Are any of the sons of Abraham heroic? Not really. All of them show growth in the direction of trusting God but not without many failings and shortcomings. The hero is God. How He puts up with us is unbelievable!
I do want to credit Marty Solomon of the Bema podcast for a fascinating intellectual and stimulating analysis of the chiasms and parallel elements of these passages in Genesis. It is so interesting to see the depth and complexity of the Word of God.
The last stories in Genesis are even more concerning... is this family ever going to realize the covenant promise of God to Abraham?
Genesis 37:18–22 They saw (Joseph) from afar, and before he came near to them they conspired against him to kill him.  They said to one another, “Here comes this dreamer.  Come now, let us kill him and throw him into one of the pits. Then we will say that a fierce animal has devoured him, and we will see what will become of his dreams.”  But when Reuben heard it, he rescued him out of their hands, saying, “Let us not take his life.”  And Reuben said to them, “Shed no blood; throw him into this pit here in the wilderness, but do not lay a hand on him”—that he might rescue him out of their hand to restore him to his father. (ESV)
Then, for some reason, Reuben leaves the others and while away, the brothers change plans and sell him to the Ishmaelites. I don't have any idea WHY Reuben left, but the family is splintering right before our eyes.
It could be he leaves to let the brothers do as they wish or he is trying to have plausible deniability. The bottom line is that this family still lives lives of deceit, deception, and manipulation.
.Genesis 37:25–27  Then they sat down to eat. And looking up they saw a caravan of Ishmaelites coming from Gilead, with their camels bearing gum, balm, and myrrh, on their way to carry it down to Egypt.  Then Judah said to his brothers, “What profit is it if we kill our brother and conceal his blood?  Come, let us sell him to the Ishmaelites, and let not our hand be upon him, for he is our brother, our own flesh.” And his brothers listened to him. (ESV)
Genesis 37:29–34  When Reuben returned to the pit and saw that Joseph was not in the pit, he tore his clothes  and returned to his brothers and said, “The boy is gone, and I, where shall I go?”  Then they took Joseph’s robe and slaughtered a goat and dipped the robe in the blood.  And they sent the robe of many colors and brought it to their father and said, “This we have found; please identify whether it is your son’s robe or not.”  And he identified ( 'nakar' ) it and said, “It is my son’s robe. A fierce animal has devoured him. Joseph is without doubt torn to pieces.”  Then Jacob tore his garments and put sackcloth on his loins and mourned for his son many days. (ESV)
Genesis 38 continues this sad, broken, mess of a family. The narrative leaves Joseph for a chapter and adds a new account on Judah.Judah was one of Leah’s sons, and Leah was the wife that Jacob didn’t love. Judah was also the patriarch of the lineage of King David and Jesus.
We need to know the cultural background to understand the story. Levirate marriage (a custom of the ancient Hebrews and other peoples by which a man may be obliged to marry his brother's widow) was a practice in the ancient Near East that was later codified in Deuteronomy 25 as part of the Mosaic law. Basically, it meant that if a man died before he had a child, his brother had to marry his wife, and their first child would carry on the first (dead) brother’s name and place in the lineage.
Judah had three sons: Er, Onan, and Shelah. Er married a woman named Tamar, and Er was so evil that he died. Onan married Tamar, but didn’t want to preserve his brother’s place in the lineage, and so he did not impregnate Tamar, and was killed for that sin. Judah had seen both of his sons die after marrying Tamar, so he hid Shelah away and kept him from Tamar. And I am leaving out a lot of strange and perverted information in the text!
Tamar, the widow who had the right to bear Judah’s eldest son’s child and continue the family line, develops a twisted plan of her own. She dresses as a prostitute and tempts Judah.
But Joseph said to them (the dysfunctional family), “Do not fear, for am I in the place of God?  As for you, you meant evil against me, but God meant it for good, to bring it about that many people should be kept alive, as they are today.  So do not fear; I will provide for you and your little ones.” Thus he comforted them and spoke kindly to them. (Genesis 50:19–21 ESV)
What about your family and mine? We dress up nicely, we go to church, we smile for instagram pictures, and we publicize our goodness.
But the sin and dysfunction is everywhere.
The great escape is to embrace the promises of God. HE is in control, He is there and He cares. He LOVES! Do you believe that?
He is moving all of us beyond the mess! But is it a messy journey of failings and mis-steps.
 If you, O LORD, should mark iniquities,
O Lord, who could stand?
 But with you there is forgiveness,
that you may be feared. (Psalm 130:3–4 ESV)
I close Genesis with a powerful message from Peter:
His divine power has granted to us all things that pertain to life and godliness, through the knowledge of him who called us to his own glory and excellence,  by which he has granted to us his precious and very great promises, so that through them you may become partakers of the divine nature, having escaped from the corruption that is in the world because of sinful desire. (2 Peter 1:3–4 ESV)
May we not drown in a sea of sin and shame.... we are who we are... but we can also be moving towards what He wants us to be.
We have to learn to forgive, to love, to understand, to accept, and to trust that God is the sovereign King.
And we have to be partakers of His nature to have even a sliver of a chance to make it.
Thank you God for grace!
Genesis wore me out and delivered a lot of sleepless nights, but it is one amazing book!