We see this in the Parable of the Rich Man and Lazarus. The intermediate state for this man was torment and suffering. Lazarus, however, is receiving comfort at Abraham's side. God raised him from the dead, freeing him from the agony of death, because it was impossible for death to keep its hold on him. When we talk of the intermediate state, the Latin word is Purgatory.
Purgatory is a strictly Roman Catholic teaching.
It is a place where the godly go to be purged of their lesser sins. Once they have been purged by suffering, by the merits of the saints, and by prayers and masses said on their behalf, they will be released to go into heaven. Neither this word nor this teaching is to be found in the Bible. As a matter of fact, this doctrine is but a denial of the atoning sacrifice of Christ. For notice what happens.