Old English heræfter "in the future; later on;" see here + after. Meaning "after death" is mid-14c. As a noun, "time in the future," from 1540s; meaning "a future world, the world to come" is from 1702.
hope to win salvation hereafter
hereafter you will no longer receive an allowance