This question already has an answer here:
I read a great book once about two young brothers who die and go to the afterlife. The afterlife is a fantasy like world where they join the fight to free the world from an evil warlord. In the end, both boys die again, to join the final afterlife.
Do you know the name and author of the book?