For example. Shahristani a Muslim historian and theologian writes that Zoroaster said:

Man has a duty in the world. Those who do their duties satisfactorily will gain purity and join the dwellers of the higher abodes. However the others who fail to do their duties will be condemned to stay under the earth until eternity.