Jacob gathers all the sons as he dies. And doesn’t pull any punches giving each a blessing that recalls their strengths and weaknesses in poetic form.
The first three are strong, but Reuben the first born’s future will be constrained because of his incestuous relationship with Jacob’s concubine.
Simeon and Levi are strong but their bloodthirsty revenge for their sister Dinah back in chapter 34 still stains them.
So he goes on though them, a clearly messianic prophesy for Judah. He will hold the “rulers scepter” until the one comes who owns it and claims the obedience of nations.
Joseph gets the greatest blessing, the best among brothers, blessed by the almighty, and rightly so. No one can call it boasting now.
And he dies. The one who walked a crooked path to his faith, who struggled with God. The embodiment of the contradictions of genesis, of humanity.