The sonnet was first published in "Mil- ton's 1673 poems" in his autograph notebook, known as the "Trinity Manuscript" from its location in the Wren Library of Trinity College, Cambridge.
He gave it the number 19, but in the first book it was numbered 16.