Test of patience in Hell[edit]
Yudhisthira was carried away on Indra's chariot. On reaching heaven he did not find either his virtuous brothers or his wife Draupadi there. Instead he saw Duryodhana and his allies. The Gods told him that his brothers were in Naraka (hell), atoning for their sins, whilst Duryodhana was in heaven since he had died at the blessed place of Kurukshetra.
Yudhisthira loyally went to Naraka to meet his brothers, but the sight of gore and blood horrified him. Though initially he was tempted to flee, after hearing the voices of his beloved brothers and Draupadi calling out to him, asking him to stay with them in their misery, he remained. Yudhisthira ordered the divine charioteer to return. He preferred to live in hell with good people than in a heaven with his enemies. Eventually this turned out to be another illusion to test him and also to enable him to atone for his sin of risking a woman's (his wife Draupadi's) honor during a game of dice. Thereafter Indra and Krishna appeared before him and told him that his brothers were already in heaven, whilst his enemies suffered from hell's torment in due time for their earthly sins.
so you see the pandavs going to hell was an illusion to test Yudhisthira. not his punishment. or the pandavs