His brother Joseph, on the other hand, is a great guy. His father loves him most of all, and even makes him a "coat of many colours" (that must have looked pretty ridiculous) - that's right, this is the Joseph from A.L. Webber's "amazing technicolour dreamcoat" (pathetic, even for his standards), although we never learn what's so amazing about it. As an obvious result, Joseph is actively loathed by his brothers, who resolve to kill him, but then change their mind (the cowards) and sell him to traveling salesmen, who sell him on the Egyptian slave market (storywise cleverly preparing the setting for the whole sorry Exodus story). He makes a fine slave, his master is very happy. Unhappily, the wife of his master gets the hots for him & wants his sex. He refuses, she accuses him of rape and he is thrown into prison (some things change, some don't). Here, he correctly interprets dreams of the Pharaoh's baker and butler (who are also imprisoned in temporary disgrace): the first is to be hung, the second shall be released - and so it came to pass. After 2 years, the Pharaoh has a dream no one can understand (although it is ridiculously clear: 7 fat animals, 7 lean ones. We don't need Freud for that). The reinstated butler remembers Joseph, who is duly sent for. He foretells 7 years of plenty and 7 years of famine (you knew that, right). Pharaoh is mightily impressed & sets Joseph free. He cleverly uses his prophetic streak to buy up all the corn during the 7 years of plenty, selling it for a fat profit during the 7 years of famine and becoming filthy rich (too bad horse racing wasn't invented yet; he could have made a fortune).
As there is also a famine in Canaan, Israel sends forth his 10 oldest sons to Egypt to buy corn (word gets around). Joseph, by then a wealthy merchant, presents himself incognito, and of course his brothers don't recognise him (first law of theater). He instructs them to bring Benjamin (the only brother who stayed at home) next time and gives them the corn for free, refusing their money. Bemused and anxious, they return. When, after some time, all the corn is gone, the 10 return to Egypt, this time taking Benjamin. Joseph (still incognito) receives them in his house for a feast. By a foul trick (hiding a silver cup in Benjamins sack), Joseph then forces them to leave Benjamin as his slave (presumably, he wants to give them a taste of their own medicine). They protest, as this will be the death of Israel, Benjamin being the apple of his eye after Josephs disappearance. Joseph then makes himself known - happy family reunion. Israel, upon hearing the news, also travels to Egypt - more happy reunions.
They resolve to stay in Egypt; Pharaoh gives his permission. Joseph continues to make a fat profit during the ongoing famine, buying up cattle & land. This land he then gives to the people; they have to give 1/5 of the revenue to Pharaoh, the rest they can keep themselves (but he keeps the money). Israel blesses Joseph's 2 sons, but the youngest first - as he will be the greatest (a recurring theme), and proceeds to foretell at great length what will become of his 12 sons, according to character, further elaborating the "12 tribes of Israel" theme. When Israel dies, Joseph returns to Canaan to bury him, after which he lives happily ever after in Egypt & dies at 110 - a mere baby compared to his forebears.