How is storytelling salvific

Storytelling salvific

How is storytelling salvific (healthy, able to save from…) in “The Arabian Nights” and in “Dante’s Inferno”? That is, in what way do stories help or save Dante and King Sharayar? ( Do the stories help them psychologically, morally, both? Discuss and make sure to include any quotation that may help you support your views.

ps. the 2 sources obviously must be “The Arabian NIghts” and “Dantes Inferno”