Romans 9:11elassōn
But before the two boys were born, God told Rebekah, "The older will serve the younger." This was before the boys had done anything good or bad. God said this so that the one chosen would be chosen because of God's own plan. He was chosen because he was the one God wanted to call, not because of anything he did.
Paul explains God's choice of the younger as resting on God's plan.
Genesis 48:19qatan
But his father refused and said, "I know, my son, I know. Manasseh will be great and have many descendants. But his younger brother will be greater, and his descendants will be enough to make a nation."
Jacob blesses younger Ephraim as greater than his older brother.