He foreknew we would sin, that we would be incapable of redeeming ourselves, and that He would send His Son to die for us to reconcile us to Him, making our eternal relationship with Him possible.