The demon in the Faust legend bargains with the latter for wealth, knowledge, etc. in exchange for his soul.