At death his Spirit went to the Father in heaven, and then returned to be clothed in the resurrection body, in which he appeared to the disciples over a period of 40 days before the ascension. The statement in John 20:17 tells us that the ascension of the resurrected Christ had not yet happened.