There are many passages in bible about this question. But the thing that confuses me is this:
If resurrection is "at the last day" or "at the end of the world" (according to John 6, John 11:24, 1 Corinthians 15:52, Matthew 13:36-43 and other verses), then how should the the parable of beggar Lazarus and the rich man be interpreted?
For if heaven or hell start at the last day, then how does Abraham say to rich man that his brothers have scriptures with themselves to hear them lest they also come to hell? If they aren't yet in heaven nor in hell and the rich man, does that mean that afterlife starts for dead immediately. And if at the last day, why would Abraham lie to him in saying that they "still have a chance" if resurrection is passed?
Someone may say that this parable should not be interpreted literally but this parable isn't the only place where immediate afterlife is mentioned (see Luke 23:43).
Luk 23:42 — Luk 23:43 And he said unto Jesus, Lord, remember me when thou comest into thy kingdom. And Jesus said unto him, Verily I say unto thee Today, shalt thou be with me in paradise.