Dante was drawing on centuries of prophetic visions and vision narratives--the voyage through the otherworld was the single most common type of religious vision in Christianity through 1200 or so, according to Peter Dinzelbacher. (They continued in popularity in and of themselves after that date; however, Christocentric visions associated above all with women mystics skyrocketed in importance).
I've discussed some predecessors of Dante that either develop many of the ideas he will or were his direct influences a couple of times on AH: