What happens to the soul after one’s death? I heard that the souls of bad people also die, while the spirit goes up to heaven?

A verse in the Qur’an addresses the Prophet, peace be upon him, in this way:

“They ask you about the spirit. Say: ‘[Knowledge of] the spirit belongs to my Lord.’ You have been given but scanty knowledge.” [Children of Israel — “Bani Israel” 17: 85]

Commentators explain that the spirit and how it functions are part of the realm that is beyond the reach of human perception. Hence, it is wrong for people to spend much time trying to obtain information when there is no reliable source to which they can resort.

Guided by this verse, I do not like to speak about the spirit, except within the limits of what we are told in the Qur’an, or in authentic Hadiths. What we know is that a human being’s spirit splits from his body at the time of his death, and goes into a different stage of life. Where this takes place is unknown to us. However, the spirits of good believers are in a happy state, and those of unbelievers are in a miserable state.