The Hellbound Heart is a horror novella by Clive Barker, first published in November 1986 by Dark Harvest in the third volume of its Night Visions anthology series. The story features a hedonist criminal acquiring a mystical puzzle box, the LeMarchand Configuration, which can be used to summon the Cenobites, demonic beings who do not distinguish between pain and pleasure. He escapes the Cenobites and, with help, resorts to murder to restore himself to full life. Later on, the puzzle box is found by another.
https://en.wikipedia.org/wiki/The_Hellbound_Heart