Christ is God. God is omniscient – knows everything.
He knows the past, the present, the future.
He knows unfailingly what is good for the individual, for the couple, for the family, for society, for the common good.
Christ God omniscient condemned divorce.