@pvonhellermannn One is reminded of the premise of Robert Louis Stevenson's short story "The Bottle Imp":
"The protagonist buys a bottle with an imp inside that grants wishes. However, the bottle is cursed; if the holder dies bearing it, his or her soul is forfeit to hell. ... The bottle must be sold, for cash, at a loss."
https://en.wikipedia.org/wiki/The_Bottle_Imp
The story is the inspiration for a solid card game by the same name: