Here is what happened. Rebekah’s twins had not even been born. They hadn’t done anything good or bad yet. So they show that God’s purpose is based firmly on his free choice.
God has saved us. He has chosen us to live a holy life. It wasn’t because of anything we have done. It was because of his own purpose and grace. Through Christ Jesus, God gave us this grace even before time began.