This question already has an answer here:
After living a peaceful and calm life, you die a painless death. Your spirit starts ascending into heaven when suddenly you are approaching two doors.
Both doors are completely identical and there is no way of telling them apart. One door leads to heaven while the other descends to hell.
In front of each door are twin brothers, both identical. One of them always speaks the truth while the other one always lies.
You are to choose one brother at random and ask one question to him.
What will you ask him so that you can find the right door ?