1 Chronicles 5:2 MSG

2 And even though Judah became the strongest of his brothers and King David eventually came from that family, the firstborn rights stayed with Joseph.