http://www.sparknotes.com/poetry/inferno/summary.html
I don't see that he sinned... he is led through hell, as he enters... there is an inscription ... he is taken through hell... and Beatrice is in heaven apparently and sent Virgil to guide Dante through hell.
Virgil leads Dante through the gates of Hell, marked by the haunting inscription “abandon all hope, you who enter here” (III.7). ((Dante is not fearful or hopeless... he trusts Virgil to take him through > signifying that he is not afraid of being imprisoned there)).
Virgil says that their path will take them through Hell and that they will eventually reach Heaven, where Dante’s beloved Beatrice awaits. He adds that it was Beatrice, along with two other holy women, who, seeing Dante lost in the wood, sent Virgil to guide him. Eventually, the poets reach the Lethe, the river of forgetfulness, and travel from there out of Hell and back onto Earth. They emerge from Hell on Easter morning, just before sunrise.