Jacques speaks this line in As You Like It, Act 2, Scene 7 (the "Seven Ages of Man" speech):
"All the world's a stage,
And all the men and women merely players;
They have their exits and their entrances,
And one man in his time plays many parts..."
Jacques, a melancholy courtier, uses the metaphor to philosophize on life's performative nature and human aging through seven stages from infant to "second childishness."