Buddha thought: “Hell is one’s own making”
Gospel of Buddha Chapter XII. ENLIGHTENMENT.
“Surely if living creatures saw the results of all their evil deeds, they would turn away from them in disgust. But selfhood blinds them, and they cling to their obnoxious desires.” 2
“They crave pleasure for themselves and they cause pain to others; when death destroys their individuality, they find no peace; their thirst for existence abides and their selfhood reappears in new births.” 3
“Thus they continue to move in the coil and can find no escape from the hell of their own making. And how empty are their pleasures, how vain are their endeavors! Hollow like the plantain-tree and without contents like the bubble.” 4
I think it is similiar what is mentioned in Quran:
[3:118] The likeness of what they spend for the present life is as the likeness of a wind wherein there is intense cold which smites the harvest of a people who have wronged themselves, and destroys it. And Allah has not wronged them, but they wrong themselves.