I think when I read that sweet story of old, p. 703, i. In his Hymns and Hymn Writers of the Church Hymnary, 1899, p. 272, the Rev. J. Brownlie says: "From an account which she [Mrs. Luke] has kindly sent of the origin of her popular hymn, we take the following:—
“I went in the year 1841 to the Normal Infant School in Gray's Inn Road to obtain some knowledge of the system. Mary Moffat, afterwards Mrs. Livingstone, was there at the same time, and Sarah Roby, whom Mr. and Mrs. Moffat had rescued in infancy when buried alive and had brought up with their own children. Among the marching pieces at Gray's Inn Road was a Greek air, the pathos of which took my fancy, and I searched Watts and Jane Taylor and several Sunday- school hymn books for words to suit the measure, but in vain. Having been recalled home, I went one day on some missionary business to the little town of Wellington, five miles from Taunton, in a stage coach. It was a beautiful spring morning; it was an hour's ride, and there was no other inside passenger. On the back of an old envelope I wrote in pencil the first two of the verses, now so well known, in order to teach the tune to the village school supported by my stepmother, which it was my province to visit. The third verse was added afterwards to make it a missionary hymn.'"
The Rev. James Mearns has traced out some of its earliest appearances in print:—
1. Both hymn and tune (Salamis) were printed in the Sunday School Teacher's Magazine, 1841, on two unnumbered pages after p. 911 with the title "The Child's Desire: a Greek Air. Words by Miss Thompson, of Poundsford Park."
2. In the Union Hymn Book for Scholars, 1842, No. 67.
3. The Union Hymn Book for Sunday Schools, 9th ed., Bristol, 1844, No. 291.
4. In the Juvenile Missionary Magazine, June 1846, with the third stanza added.
The Greek Melody, commonly called "Salamis," is in the musical edition of The Church Hymnary, 1898; the S.P.C.K. Church Hymns, 1903, and other hymnals.
--John Julian, Dictionary of Hymnology, New Supplement (1907)