who was foreknown indeed before the foundation of the world, but was revealed at the end of times for your sake,

 (ii) Another way to put that is to say that this rebirth is the work of the Spirit ( John 3:1-15). It happens to a man, not by his own effort, but when he yields himself to be possessed and re-created by the Spirit within him. 