Blessed be the God and Father of our Lord Jesus Christ, who according to his great mercy became our father again to a living hope through the resurrection of Jesus Christ from the dead,
Paul tells us in Ephesians 1:0 that "we were chosen in Him before the foundation of the world" ( Ephesians 1:4 ). Here election is according to the foreknowledge of God.