But it is not as though the word of God has failed. For not all who are descended from Israel belong to Israel, and not all are children of Abraham because they are his offspring, but “Through Isaac shall your offspring be named.” This means that it is not the children of the flesh who are the children of God, but the children of the promise are counted as offspring. For this is what the promise said: “About this time next year I will return, and Sarah shall have a son.” And not only so, but also when Rebekah had conceived children by one man, our forefather Isaac, though they were not yet born and had done nothing either good or bad—in order that God’s purpose of election might continue, not because of works but because of him who calls—she was told, “The older will serve the younger.” As it is written, “Jacob I loved, but Esau I hated.”
What shall we say then? Is there injustice on God’s part? By no means! For he says to Moses, “I will have mercy on whom I have mercy, and I will have compassion on whom I have compassion.” So then it depends not on human will or exertion, but on God, who has mercy. For the Scripture says to Pharaoh, “For this very purpose I have raised you up, that I might show my power in you, and that my name might be proclaimed in all the earth.” So then he has mercy on whomever he wills, and he hardens whomever he wills.
(Romans 9:6-18 ESV)