When someone dies, where does his spirit go?

Man is composed of spirit, soul, and body. When he dies where does the spirit go?

The spirit and the soul must not be confused, nor yet divided. They together form the spiritual part of man. When a believer falls asleep he only does so as regards his body. The spiritual part of him, with which the personality is really connected, goes at once to be with Christ (see a 2 Corinthians 5: 8). “Absent from the body, and to be present with the Lord.” This, of course, cannot refer to the resurrection state, as then no believer will be absent from the body. Paul describes dying as departing to be with Christ which is far better (Philippians 1:23). It is a most serious denial of God’s truth to describe the condition of the believer who dies, as that of sleep, except as regards his body.