1 Chronicles 5:2

2 Even though Judah was more prominent than his brothers and the prince was to come from him, Joseph received the rights as firstborn.)