O for one celestial ray. Anne Steele and A. M. Toplady. [Prayer for the Holy Spirit.] This hymn is based on the 12 concluding lines of Miss Steele's poem on "Captivity," published in her Poems, &c, 1760, vol. ii. p. 46 (Sedgwick's reprint, 1863, p. 227), and appeared in A. M. Toplady's Psalms & Hymns, 1776, No. 194, in 5 stanzas of 4 lines. This form of the text is in a few modern collections, including the Baptist Psalms & Hymns, 1858, and others.
--John Julian, Dictionary of Hymnology (1907)