Shakespeare wrote the line in As You Like It, composed circa 1599–1600. The claim it was written by Thomas Lodge in Rosalynde (1590) is incorrect—Lodge’s prose romance inspired the play, but the "world's a stage" speech is Shakespeare’s original creation for Jaques.