Ari cites how Jesus knew He would be giving up His life for the redemption of our sinful souls from before the world was made.
1 Peter 1:20 New King James Version
He indeed was foreordained before the foundation of the world, but was manifest in these last times for you
Isaiah 53