Johann Wolfgang von Goethe's Faust is a tragic play in verse. Faust does not seek power through knowledge, but access to transcendent knowledge denied to the rational mind.
Faust takes place in multiple settings, the first of which is heaven. Mephistopheles makes a bet with God: he says that he can lure God's favorite human being (Faust), who is striving to learn everything that can be known, away from righteous pursuits. The next scene takes place in Faust's study where Faust, despairing at the vanity of scientific, humanitarian and religious learning, turns to magic for the showering of infinite knowledge. He suspects, however, that his attempts are failing. Frustrated, he ponders suicide, but rejects it as he hears the echo of nearby Easter celebrations begin. He goes for a walk with his assistant Wagner and is followed home by a stray poodle.
In Faust's study, the poodle transforms into the devil (Mephistopheles). Faust makes an arrangement with the devil: the devil will do everything that Faust wants while he is here on Earth, and in exchange Faust will serve the devil in Hell. Faust's arrangement is that if he is pleased enough with anything the devil gives him that he wants to stay in that moment forever, then he will die in that moment.