Yes, he is omniscient.
Out of love, he wanted to show his love and his glory.
"Father, I want those you have given me to be with me where I am, and to see my glory, the glory you have given me because you loved me before the creation of the world." (John 17:24)
But God knows his own future...