The events of the story take place in both the worldly life and the Hereafter.
Masrur was a ruler who was an unbeliever, whereas Maqrur was a true believer. The story traces the footsteps of their lives to the gates of Hell-fire and Paradise.
Really, it is a great story that inspires wisdom to some and admonishes others.