Romans 9:11
for though {the twins} were not yet born and had not done anything good or bad, so that God's purpose according to {His} choice would stand, not because of works but because of Him who calls,
God's choice between the twins came before they did good or bad.