In the hour of my distress. B. Herrick. [Litany to the Holy Spirit.] This Litany was published in his Noble Numbers, &c, 1647, in 12 stanzas of 4 lines; and in Dr. Grosart's Early English Poets, 1869, vol. iii. p. 132. The form in which it is found in common use is that of a cento. The stanzas chosen vary in the hymnals, those usually omitted being too quaint for congregational use. In some collections it begins “In the time of my distress." It is also sometimes given as "In the hour of deep distress," with the refrain "Good Spirit, comfort me." This form of the text appeared in Cotterill's Selection, 1819, where it was given as a sequel to "O Thou from Whom all goodness flows." It is in extensive use in Great Britain and America. Original text in Lyra Britannica, 1867, p. 306.
--John Julian, Dictionary of Hymnology (1907)