My Robin is to the Greenwood Gone
The earliest extant score of the ballad appears in William Ballet's Lute Book (c. 1600) as Robin Hood is to the Greenwood Gone.  References to the song can be dated back to 1586, in a letter from Sir Walter Raleigh to Robert Dudley, 1st Earl of Leicester saying "The Queen is in very good terms with you now, and, thanks be to God, will be pacified, and you are again her Sweet Robin." 
Although the words have been lost, it is suspected that the character Ophelia, of Hamlet (who is specified in the First Quarto to be a lutenist), sings the last line of the tune ("For bonny sweet Robin is all my Joy") during her madness (IV, v, 187).  Some scholars believe that Shakespeare's choice of the song was meant to invoke phallic symbolism.
As was common during the renaissance, many composers wrote variations or divisions based on the piece. Two sets of variations can be found in the Fitzwilliam Virginal Book, one by John Munday and the other by Giles Farnaby.
The work was commonly set for lute. It appears twice in William Ballet's lute book, in the Pickering Lute book, Anthony Holborne's Cittharn Schoole (1597), and Thomas Robinson's Schoole of Musicke (1603). There exists also a manuscript of John Dowland's setting.
The tune was often used for other texts too, such ballads can be found in the Roxburghe Ballads and in The Crown Garden of Golden Roses, and was used as such into the 18th century in Music for the Tea Table Miscellany (1725) 
More recently, the song inspired Percy Grainger's "music room rambling" (as he described it) for which he wrote three instrumentations: solo piano; violin, cello and piano; and strings, flute and English horn.
- Chappell, William (1893). Old English Popular Music: Vol 1 (Second ed.). London: Chappell and MacMillan. p. 153.
- Anders, H.R.D (1904). Shakespeare's Books. Berlin: Publisher & Printer Georg Reimer. p. 178.
- Morris, Harry (December 1958). "Ophelia's "Bonny Sweet Robin"". Publications of the Modern Language Association of America. 73 (5): 601–603. doi:10.2307/460304. JSTOR 460304.
- Fitzwilliam Virginal Book. Leipzig: Breitkopf & Härtel. 1899.
- Poulton, Diana (1982). John Dowland. University of California Press. p. 173.
- Grainger, Percy (1912). My Robin is to the Greenwood Gone. London: Schott & Co.