"To be, or not to be" is the opening phrase of a soliloquy spoken by Prince Hamlet in the so-called "nunnery scene" of William Shakespeare's play Hamlet. Act III, Scene I.
Although called a soliloquy, Hamlet is far from alone since Ophelia is pretending to read while she waits for Hamlet to notice her, and Claudius and Polonius, who have sent Ophelia there in order to overhear their conversation and find out if Hamlet is really mad or only pretending, are hiding behind an arras. Even so, Hamlet seems to consider himself alone. In the speech, Hamlet contemplates death and suicide, bemoaning the pain and unfairness of life but acknowledging that the alternative might be worse. The meaning of the speech is heavily debated but seems concerned with Hamlet's hesitation to directly and immediately avenge his father's murder (discovered in Act I) on his uncle, stepfather, and new king Claudius.
This version preserves most of the First Folio text with updated spelling and five common emendations introduced from the Second ("Good") Quarto (italicized).
To be, or not to be, that is the question:
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune,
Or to take Arms against a Sea of troubles,
And by opposing end them: to die, to sleep
No more; and by a sleep, to say we end
the heart-ache, and the thousand natural shocks
that Flesh is heir to? 'Tis a consummation
devoutly to be wished. To die, to sleep,
To sleep, perchance to Dream; aye, there's the rub,
for in that sleep of death, what dreams may come,
when we have shuffled off this mortal coil,
must give us pause. There's the respect
that makes Calamity of so long life:
For who would bear the Whips and Scorns of time,
the Oppressor's wrong, the proud man's Contumely, [F: poor]
the pangs of despised Love, the Law’s delay, [F: disprized]
the insolence of Office, and the spurns
that patient merit of the unworthy takes,
when he himself might his Quietus make
with a bare Bodkin? Who would Fardels bear, [F: these Fardels]
to grunt and sweat under a weary life,
but that the dread of something after death,
the undiscovered country, from whose bourn
no traveller returns, puzzles the will,
and makes us rather bear those ills we have,
than fly to others that we know not of.
Thus conscience does make cowards of us all,
and thus the native hue of Resolution
Is sicklied o'er, with the pale cast of Thought,
And enterprises of great pitch and moment, [F: pith]
with this regard their Currents turn awry, [F: away]
And lose the name of Action. Soft you now,
The fair Ophelia? Nymph, in thy Orisons
Be all my sins remember'd.