Where did the pop culture concept of "selling your soul to the devil for ____" come from?

by jellybear421

The Bible never mentions selling your soul for profit, but this idea is such a media staple. Which version of the Christian canon did this come from? How did it gain so much popularity? How far back does it go?

jelvinjs7