O Thou, the contrite sinner's Friend. Charlotte Elliott. [Jesus, the Advocate.] Appeared in her brother's Psalms & Hymns, 1st edition, 1835, in 6 stanzas of 4 lines, and headed with the text, "We have an Advocate with the Father." In the Index it was given as by "Wesley" in error, and this ascription was continued therein for a considerable length of time. Lord Selborne cleared up the matter in a note to the hymn in his Book of Praise, 1862;—
"Miss Eiliott's name is now (through the kindness of her brother, the Rev. H. V. Elliott, in obtaining for me her permission) first made public as the authoress of this hymn. Through some accidental error it is ascribed in the Rev. H. V. Elliott's collection to Wesley; and the same mistake has been transferred to Kyle's Spiritual Songs, Bourchier's Solace in Sickness and Sorrow, and probably other works."
The use of this hymn has extended to all English-speaking countries. Usually the original text is given as in the Hymnal Companion, No. 139. In Thring's Collection, 1882, there is a change in stanza v. 1. 2 (suggested by H. H. Pierson, the musician) from "Darken'd with anguish, guilt, and fear," to "O'ercast with sorrow, pain, and fear," which was submitted to Miss Elliott and received her approval.
--John Julian, Dictionary of Hymnology (1907)